Major rework: multi-user accounts (register/login, per-user data isolation), new layout with sidebar/dashboard/profile menu, matrix phase view with collapsible category columns, life timeline with ages per phase, live budget capping, collapsible transitions, mobile support
Deploy App / deploy (push) Successful in 1m47s

This commit is contained in:
2026-07-11 17:31:18 +02:00
parent 2e65bb3a2d
commit 685ff46c27
31 changed files with 1479 additions and 721 deletions
+10 -4
View File
@@ -10,12 +10,16 @@ datasource db {
provider = "postgresql"
}
// Zugriffsschutz der Webapplikation: kein vorkonfiguriertes Passwort -- der
// Benutzer legt es beim allerersten Login selbst fest (genau eine Zeile).
model AppCredential {
// Benutzerkonto: offene Registrierung mit Benutzername + Passwort (bcrypt-Hash).
// Jeder Benutzer hat seinen eigenen Haushalt samt Plaenen -- Daten sind strikt
// pro Konto isoliert.
model User {
id String @id @default(cuid())
username String @unique
passwordHash String
createdAt DateTime @default(now())
households Household[]
}
enum HouseholdType {
@@ -54,9 +58,11 @@ enum PositionType {
REAL_ESTATE
}
// Ein Haushalt (1 oder 2 Personen) - Wurzel-Objekt
// Ein Haushalt (1 oder 2 Personen) - Wurzel-Objekt, gehoert genau einem Benutzer
model Household {
id String @id @default(cuid())
userId String
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
householdType HouseholdType
inflationRateDefault Float
createdAt DateTime @default(now())