changed username, add UserTable to SchemaUtils

This commit is contained in:
aldemirm 2026-09-04 12:21:51 +02:00
parent cb03279c6d
commit b1448884c6
2 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,7 @@ object DatabaseFactory {
) )
transaction(database) { transaction(database) {
SchemaUtils.create(TasksTable, ScreentimeTable) SchemaUtils.create(TasksTable, ScreentimeTable, UserTable)
// Standard aufgaben, sollte es keine mehr geben // Standard aufgaben, sollte es keine mehr geben
if (TasksTable.selectAll().empty()) { if (TasksTable.selectAll().empty()) {
@ -98,6 +98,7 @@ object DatabaseFactory {
// Create a standard user if the Users table is empty. // Create a standard user if the Users table is empty.
if (UserTable.selectAll().empty()) { if (UserTable.selectAll().empty()) {
UserTable.insert { UserTable.insert {
// ID automatische generierung
it[id] = "default_user" it[id] = "default_user"
it[user_username] = "default_user" it[user_username] = "default_user"
it[passwordHash] = "1234" it[passwordHash] = "1234"

View file

@ -10,5 +10,5 @@ storage:
host: "82.165.11.162" host: "82.165.11.162"
port: "5432" port: "5432"
database: "kidio_db" database: "kidio_db"
username: "postgres" username: "kidio_admin"
password: "learning" password: "learning"