mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-08-19 21:11:30 +10:00
* Adding groups logic and restrictions * Cleaning up some redundant code * hastily made translations * Linter issues * More linting * PR comments * Covering other APIs with age filters per comment --------- Co-authored-by: Robert Clabough <robert@clabough.tech>
24 lines
568 B
Plaintext
24 lines
568 B
Plaintext
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")
|
|
}
|