Added API for TTS Username Filters
This commit is contained in:
@ -18,8 +18,8 @@ model User {
|
||||
apiKeys ApiKey[]
|
||||
accounts Account[]
|
||||
twitchConnections TwitchConnection[]
|
||||
createdProfiles TtsProfile[]
|
||||
profileStatus TtsProfileStatus[]
|
||||
ttsUsernameFilter TtsUsernameFilter[]
|
||||
ttsWordFilter TtsWordFilter[]
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
@ -65,69 +65,24 @@ model TwitchConnection {
|
||||
@@index([userId])
|
||||
}
|
||||
|
||||
model TtsProfile {
|
||||
id String @id @default(uuid())
|
||||
name String
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
statuses TtsProfileStatus[]
|
||||
badgeFilters TtsBadgeFilter[]
|
||||
usernameFilters TtsUsernameFilter[]
|
||||
wordFilters TtsWordReplacementFilter[]
|
||||
|
||||
creatorId String
|
||||
creator User @relation(fields: [creatorId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([creatorId])
|
||||
@@unique([creatorId, name])
|
||||
}
|
||||
|
||||
model TtsProfileStatus {
|
||||
id String @id @default(uuid())
|
||||
name String
|
||||
enabled Boolean
|
||||
|
||||
userId String
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
profileId String
|
||||
profile TtsProfile @relation(fields: [profileId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([userId])
|
||||
@@index([profileId])
|
||||
}
|
||||
|
||||
model TtsBadgeFilter {
|
||||
badgeId String
|
||||
|
||||
profileId String
|
||||
profile TtsProfile @relation(fields: [profileId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([profileId])
|
||||
@@id([profileId, badgeId])
|
||||
}
|
||||
|
||||
model TtsUsernameFilter {
|
||||
username String
|
||||
tag String
|
||||
|
||||
profileId String
|
||||
profile TtsProfile @relation(fields: [profileId], references: [id], onDelete: Cascade)
|
||||
userId String
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([profileId])
|
||||
@@id([profileId, username])
|
||||
@@index([userId])
|
||||
@@id([userId, username])
|
||||
}
|
||||
|
||||
model TtsWordReplacementFilter {
|
||||
word String
|
||||
model TtsWordFilter {
|
||||
search String
|
||||
replace String
|
||||
|
||||
profileId String
|
||||
profile TtsProfile @relation(fields: [profileId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([profileId])
|
||||
@@id([profileId, word])
|
||||
}
|
||||
userId String
|
||||
profile User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([userId])
|
||||
@@id([userId, search])
|
||||
}
|
Reference in New Issue
Block a user