mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-29 17:28:02 +01:00
refactor(arabot): change StatRole to one to one relationship in Prisma
This commit is contained in:
@@ -96,6 +96,8 @@ model LeaveLog {
|
||||
roles String[]
|
||||
}
|
||||
|
||||
// Outreach
|
||||
|
||||
model Event {
|
||||
id Int @id @default(autoincrement())
|
||||
type EventType @relation(fields: [eventType], references: [type])
|
||||
@@ -125,7 +127,7 @@ model Stat {
|
||||
documentary Int @default(0)
|
||||
educated Int @default(0)
|
||||
participants ParticipantStat[]
|
||||
role StatRole[]
|
||||
role StatRole?
|
||||
}
|
||||
|
||||
model StatRole {
|
||||
@@ -143,6 +145,8 @@ model ParticipantStat {
|
||||
@@id([statId, userId])
|
||||
}
|
||||
|
||||
// Moderation
|
||||
|
||||
model Sus {
|
||||
id Int @id @default(autoincrement())
|
||||
user User @relation("susUser", fields: [userId], references: [id])
|
||||
|
||||
Reference in New Issue
Block a user