Added username filter, word replacement filter and voice selection

This commit is contained in:
Tom
2024-01-04 07:14:11 +00:00
parent 40cfb93f6a
commit ca9d84a25a
11 changed files with 584 additions and 96 deletions

View File

@ -14,6 +14,8 @@ model User {
email String? @unique
emailVerified DateTime?
image String?
ttsDefaultVoice Int @default(1)
ttsEnabledVoice Int @default(1048575)
apiKeys ApiKey[]
accounts Account[]
@ -77,12 +79,13 @@ model TtsUsernameFilter {
}
model TtsWordFilter {
id String @id @default(cuid())
search String
replace String
userId String
profile User @relation(fields: [userId], references: [id], onDelete: Cascade)
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@index([userId])
@@id([userId, search])
@@unique([userId, search])
}