muse/schema.prisma

45 lines
880 B
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)
2022-01-29 17:20:40 +01:00
roleId String?
2022-01-05 21:30:32 +01:00
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
2022-01-28 03:26:00 +01:00
model FavoriteQuery {
2022-01-05 21:30:32 +01:00
id Int @id @default(autoincrement())
guildId String
authorId String
2022-01-28 03:26:00 +01:00
name String
query String
2022-01-05 21:30:32 +01:00
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
2022-01-28 03:26:00 +01:00
@@unique([guildId, name])
2022-01-05 21:30:32 +01:00
}