muse/schema.prisma
Kevin Kendzia eb2885b206
fix command permission handling and push discord to v10 (#640)
Co-authored-by: Max Isom <hi@maxisom.me>
2022-05-13 19:44:14 -05:00

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])
}