muse/schema.prisma
Max Isom 56a469a999
Migrate to slash commands (#431)
Co-authored-by: Federico fuji97 Rapetti <fuji1097@gmail.com>
2022-02-05 16:16:17 -06:00

45 lines
880 B
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)
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])
}