Datenbank und ID Generierung

This commit is contained in:
Moritz Utcke
2025-04-07 15:33:30 -04:00
parent 32d8e2383e
commit 2abb143cfe
66 changed files with 906 additions and 6309 deletions

View File

@@ -5,7 +5,8 @@ enum BenutzerRolle {
}
model Benutzer {
id String @id @unique @db.VarChar(10)
id String @id @unique @db.VarChar(11)
alte_id Int?
name String? @db.VarChar(100)
vorname String? @db.VarChar(50)
email String @unique(map: "benutzer_email_idx") @db.VarChar(255)
@@ -40,6 +41,8 @@ model Benutzer {
geg_nachweise_wohnen GEGNachweisWohnen[]
bedarfsausweise_gewerbe BedarfsausweisGewerbe[]
created_at DateTime @default(now())
updated_at DateTime @updatedAt
ErstellteTickets Tickets[] @relation("ErstellteTickets")