mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-03 15:49:50 +01:00
feat(arabot): remove EventStat link table
This commit is contained in:
parent
8e7cc9037d
commit
ed85099d37
@ -103,15 +103,6 @@ model EventType {
|
|||||||
Event Event[]
|
Event Event[]
|
||||||
}
|
}
|
||||||
|
|
||||||
model EventStat {
|
|
||||||
event Event @relation(fields: [eventId], references: [id])
|
|
||||||
eventId Int
|
|
||||||
stat Stat @relation(fields: [statId], references: [id])
|
|
||||||
statId Int
|
|
||||||
|
|
||||||
@@id([eventId, statId])
|
|
||||||
}
|
|
||||||
|
|
||||||
model Stat {
|
model Stat {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
leader User @relation("statLeader", fields: [leaderId], references: [id]) // Not sure if this will stay
|
leader User @relation("statLeader", fields: [leaderId], references: [id]) // Not sure if this will stay
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user