mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
* #86 Adds delete user functionality in admin panel * Removes unnecessary code * Prevents current user from deleting itself
21 lines
538 B
Plaintext
21 lines
538 B
Plaintext
model Collection {
|
|
id String @id @default(uuid())
|
|
name String
|
|
|
|
isDefault Boolean @default(false)
|
|
userId String
|
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
|
|
entries CollectionEntry[]
|
|
}
|
|
|
|
model CollectionEntry {
|
|
collectionId String
|
|
collection Collection @relation(fields: [collectionId], references: [id], onDelete: Cascade)
|
|
|
|
gameId String
|
|
game Game @relation(fields: [gameId], references: [id], onDelete: Cascade)
|
|
|
|
@@id([collectionId, gameId])
|
|
}
|