muse/schema.prisma

46 lines
1 KiB
Plaintext
Raw Normal View History

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 {
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
}
model FavoriteQuery {
2022-01-05 21:30:32 +01:00
id Int @id @default(autoincrement())
guildId String
authorId String
name String
query String
2022-01-05 21:30:32 +01:00
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@unique([guildId, name])
2022-01-05 21:30:32 +01:00
}