Highlight und neue ID
This commit is contained in:
@@ -8,11 +8,10 @@ enum BilderKategorie {
|
||||
}
|
||||
|
||||
model Bild {
|
||||
id Int @id @default(autoincrement())
|
||||
id String @id @unique @db.VarChar(8)
|
||||
kategorie BilderKategorie
|
||||
uid String @unique @default(dbgenerated("'img-' || gen_random_uuid()"))
|
||||
name String
|
||||
|
||||
aufnahme_id Int?
|
||||
aufnahme_id String?
|
||||
aufnahme Aufnahme? @relation(fields: [aufnahme_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
||||
}
|
||||
Reference in New Issue
Block a user