Minor changes
This commit is contained in:
@ -30,20 +30,21 @@ model User {
|
||||
impersonationSources Impersonation[] @relation(name: "impersonationSources")
|
||||
impersonationTargets Impersonation[] @relation(name: "impersonationTargets")
|
||||
|
||||
apiKeys ApiKey[]
|
||||
accounts Account[]
|
||||
twitchConnections TwitchConnection[]
|
||||
Connection Connection[]
|
||||
ConnectionState ConnectionState[]
|
||||
ttsUsernameFilter TtsUsernameFilter[]
|
||||
ttsWordFilter TtsWordFilter[]
|
||||
ttsChatVoices TtsChatVoice[]
|
||||
ttsVoiceStates TtsVoiceState[]
|
||||
actions Action[]
|
||||
redemptions Redemption[]
|
||||
groups Group[]
|
||||
chatterGroups ChatterGroup[]
|
||||
groupPermissions GroupPermission[]
|
||||
apiKeys ApiKey[]
|
||||
accounts Account[]
|
||||
twitchConnections TwitchConnection[]
|
||||
Connection Connection[]
|
||||
ConnectionState ConnectionState[]
|
||||
ttsUsernameFilter TtsUsernameFilter[]
|
||||
ttsWordFilter TtsWordFilter[]
|
||||
ttsChatVoices TtsChatVoice[]
|
||||
ttsVoiceStates TtsVoiceState[]
|
||||
actions Action[]
|
||||
redemptions Redemption[]
|
||||
groups Group[]
|
||||
chatterGroups ChatterGroup[]
|
||||
groupPermissions GroupPermission[]
|
||||
GroupPermissionPolicy GroupPermissionPolicy[]
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
@ -105,7 +106,7 @@ model Connection {
|
||||
grantType String
|
||||
scope String
|
||||
expiresAt DateTime
|
||||
default Boolean @default(false)
|
||||
default Boolean @default(false)
|
||||
|
||||
userId String
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
||||
@ -223,6 +224,20 @@ model GroupPermission {
|
||||
@@index([userId])
|
||||
}
|
||||
|
||||
model GroupPermissionPolicy {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
userId String
|
||||
groupId String @db.Uuid
|
||||
path String
|
||||
count Int
|
||||
timespan Int
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([userId, groupId, path])
|
||||
@@index([userId])
|
||||
}
|
||||
|
||||
model Chatter {
|
||||
id BigInt
|
||||
name String
|
||||
@ -273,6 +288,9 @@ enum ActionType {
|
||||
NIGHTBOT_CLEAR_PLAYLIST
|
||||
NIGHTBOT_CLEAR_QUEUE
|
||||
TWITCH_OAUTH
|
||||
VEADOTUBE_SET_STATE
|
||||
VEADOTUBE_PUSH_STATE
|
||||
VEADOTUBE_POP_STATE
|
||||
}
|
||||
|
||||
model Action {
|
||||
|
Reference in New Issue
Block a user