mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-10 03:55:29 +01:00
4dbb55a721
Co-authored-by: Max Isom <hi@maxisom.me>
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
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 {
|
|
guildId String @id
|
|
playlistLimit Int @default(50)
|
|
secondsToWaitAfterQueueEmpties Int @default(30)
|
|
leaveIfNoListeners Boolean @default(true)
|
|
roleId String?
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
}
|
|
|
|
model FavoriteQuery {
|
|
id Int @id @default(autoincrement())
|
|
guildId String
|
|
authorId String
|
|
name String
|
|
query String
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
|
|
@@unique([guildId, name])
|
|
}
|