11 lines
561 B
Plaintext
11 lines
561 B
Plaintext
model Anteilshaber {
|
|
id Int @id @default(autoincrement())
|
|
benutzer_id Int
|
|
rolle String? @db.VarChar
|
|
privilegien BigInt?
|
|
uid String @unique @default(dbgenerated("'ant-' || gen_random_uuid()"))
|
|
benutzer Benutzer @relation(fields: [benutzer_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
|
|
|
objekt_id Int
|
|
objekt Objekt @relation(fields: [objekt_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
|
|
} |