mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 17:14:15 +02:00
refactor(arabot): run prisma format
This commit is contained in:
parent
06a05d4240
commit
7260e9c32b
@ -37,6 +37,9 @@ model User {
|
||||
muted Boolean @default(false)
|
||||
VerifyUser Verify[] @relation("verUser")
|
||||
VerifyVerifier Verify[] @relation("verVerifier")
|
||||
EventLeader Event[] @relation("eventLeader")
|
||||
StatLeader Stat[] @relation("statLeader")
|
||||
OutreachParticipation ParticipantStat[] @relation("participantUser")
|
||||
SusUser Sus[] @relation("susUser")
|
||||
SusMod Sus[] @relation("susMod")
|
||||
WarnUser Warning[] @relation("warnUser")
|
||||
@ -85,25 +88,26 @@ model Verify {
|
||||
|
||||
model Event {
|
||||
id Int @id @default(autoincrement())
|
||||
leader User @relation("statsLeader", fields: [leaderId], references: [id]) // Not sure if this will stay
|
||||
leader User @relation("eventLeader", fields: [leaderId], references: [id]) // Not sure if this will stay
|
||||
leaderId String
|
||||
startTime DateTime @default(now())
|
||||
endTime DateTime?
|
||||
// Add a type of Event like Discord Outreach, Voice Chat, etc?
|
||||
EventStat EventStat[]
|
||||
}
|
||||
|
||||
model EventStat {
|
||||
event Event @relation(fields: [eventId], references: [id])
|
||||
eventId Int
|
||||
stats Stats @relation(fields: [statsId], references: [id])
|
||||
statsId Int
|
||||
stat Stat @relation(fields: [statId], references: [id])
|
||||
statId Int
|
||||
|
||||
@@id([eventId, statsId])
|
||||
@@id([eventId, statId])
|
||||
}
|
||||
|
||||
model Stat {
|
||||
id Int @id @default(autoincrement())
|
||||
leader User @relation("statsLeader", fields: [leaderId], references: [id]) // Not sure if this will stay
|
||||
leader User @relation("statLeader", fields: [leaderId], references: [id]) // Not sure if this will stay
|
||||
leaderId String
|
||||
vegan Int @default(0)
|
||||
considered Int @default(0)
|
||||
@ -111,15 +115,17 @@ model Stat {
|
||||
thanked Int @default(0)
|
||||
documentary Int @default(0)
|
||||
educated Int @default(0)
|
||||
EventStat EventStat[]
|
||||
ParticipantStat ParticipantStat[]
|
||||
}
|
||||
|
||||
model ParticipantStat {
|
||||
stats Stats @relation(fields: [statsId], references: [id])
|
||||
statsId Int
|
||||
stat Stat @relation(fields: [statId], references: [id])
|
||||
statId Int
|
||||
user User @relation("participantUser", fields: [userId], references: [id])
|
||||
userId String
|
||||
|
||||
@@id([statsId, userId])
|
||||
@@id([statId, userId])
|
||||
}
|
||||
|
||||
model Sus {
|
||||
|
Loading…
x
Reference in New Issue
Block a user