muse/schema.prisma
2022-01-27 21:26:00 -05: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
channel String?
playlistLimit Int @default(50)
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])
}