2022-01-05 21:30:32 +01:00
|
|
|
generator client {
|
|
|
|
provider = "prisma-client-js"
|
|
|
|
}
|
|
|
|
|
|
|
|
datasource db {
|
|
|
|
provider = "sqlite"
|
|
|
|
url = env("DATABASE_URL")
|
|
|
|
}
|
|
|
|
|
|
|
|
model FileCache {
|
|
|
|
hash String @id
|
|
|
|
bytes Int
|
|
|
|
accessedAt DateTime
|
|
|
|
createdAt DateTime @default(now())
|
|
|
|
updatedAt DateTime @updatedAt
|
|
|
|
}
|
|
|
|
|
|
|
|
model KeyValueCache {
|
|
|
|
key String @id
|
|
|
|
value String
|
|
|
|
expiresAt DateTime
|
|
|
|
createdAt DateTime @default(now())
|
|
|
|
updatedAt DateTime @updatedAt
|
|
|
|
}
|
|
|
|
|
|
|
|
model Setting {
|
2022-02-12 03:05:02 +01:00
|
|
|
guildId String @id
|
|
|
|
playlistLimit Int @default(50)
|
|
|
|
secondsToWaitAfterQueueEmpties Int @default(30)
|
|
|
|
leaveIfNoListeners Boolean @default(true)
|
|
|
|
createdAt DateTime @default(now())
|
|
|
|
updatedAt DateTime @updatedAt
|
2022-01-05 21:30:32 +01:00
|
|
|
}
|
|
|
|
|
2022-02-05 23:16:17 +01:00
|
|
|
model FavoriteQuery {
|
2022-01-05 21:30:32 +01:00
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
guildId String
|
|
|
|
authorId String
|
2022-02-05 23:16:17 +01:00
|
|
|
name String
|
|
|
|
query String
|
2022-01-05 21:30:32 +01:00
|
|
|
createdAt DateTime @default(now())
|
|
|
|
updatedAt DateTime @updatedAt
|
|
|
|
|
2022-02-05 23:16:17 +01:00
|
|
|
@@unique([guildId, name])
|
2022-01-05 21:30:32 +01:00
|
|
|
}
|