mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-09-19 18:02:21 +02:00
feat(db): add mod who unrestricted
This commit is contained in:
parent
91631995a9
commit
2339ae6784
@ -41,6 +41,7 @@ model User {
|
||||
SusMod Sus[] @relation("susMod")
|
||||
RestrictUser Restrict[] @relation("restUser")
|
||||
RestrictMod Restrict[] @relation("restMod")
|
||||
RestrictEndMod Restrict[] @relation("endRestMod")
|
||||
BanUser Ban[] @relation("banUser")
|
||||
BanMod Ban[] @relation("banMod")
|
||||
BanEndMod Ban[] @relation("endBanMod")
|
||||
@ -95,6 +96,8 @@ model Restrict {
|
||||
mod User @relation("restMod", fields: [modId], references: [id])
|
||||
modId String
|
||||
startTime DateTime @default(now())
|
||||
endMod User? @relation("endRestMod", fields: [endModId], references: [id])
|
||||
endModId String?
|
||||
endedTime DateTime?
|
||||
reason String
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user