feat(arabot): remove EventStat link table

This commit is contained in:
smyalygames 2023-02-26 01:53:58 +00:00
parent 8e7cc9037d
commit ed85099d37

View File

@ -103,15 +103,6 @@ model EventType {
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 {
id Int @id @default(autoincrement())
leader User @relation("statLeader", fields: [leaderId], references: [id]) // Not sure if this will stay