mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-09 19:55:28 +01:00
50 lines
1 KiB
Plaintext
50 lines
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
|
|
prefix String
|
|
channel String?
|
|
finishedSetup Boolean @default(false)
|
|
playlistLimit Int @default(50)
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
}
|
|
|
|
model Shortcut {
|
|
id Int @id @default(autoincrement())
|
|
guildId String
|
|
authorId String
|
|
shortcut String
|
|
command String
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
|
|
|
|
@@index([shortcut], map: "shortcuts_shortcut")
|
|
@@index([guildId], map: "shortcuts_guild_id")
|
|
@@index([guildId, shortcut])
|
|
}
|