mirror of
https://github.com/Drop-OSS/drop
synced 2026-08-27 14:23:05 -04:00
24 lines
568 B
Text
24 lines
568 B
Text
|
|
model UserGroup {
|
||
|
|
id String @id @default(uuid())
|
||
|
|
name String @unique
|
||
|
|
description String @default("")
|
||
|
|
|
||
|
|
createdAt DateTime @default(now())
|
||
|
|
updatedAt DateTime @updatedAt
|
||
|
|
|
||
|
|
users User[]
|
||
|
|
bannedAgeRatings BannedAgeRating[]
|
||
|
|
}
|
||
|
|
|
||
|
|
model BannedAgeRating {
|
||
|
|
id String @id @default(uuid())
|
||
|
|
|
||
|
|
organization AgeRatingOrganization
|
||
|
|
rating String
|
||
|
|
|
||
|
|
userGroup UserGroup @relation(fields: [userGroupId], references: [id], onDelete: Cascade)
|
||
|
|
userGroupId String
|
||
|
|
|
||
|
|
@@unique([userGroupId, organization, rating], name: "groupRatingKey")
|
||
|
|
}
|