mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-10 03:55:29 +01:00
45 lines
880 B
Plaintext
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])
|
|
}
|