mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-12 07:42:40 +10:00
21 lines
519 B
Plaintext
21 lines
519 B
Plaintext
model Collection {
|
|
id String @id @default(uuid())
|
|
name String
|
|
|
|
isDefault Boolean @default(false)
|
|
userId String
|
|
user User @relation(fields: [userId], references: [id])
|
|
|
|
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])
|
|
}
|