diff options
| author | Max Isom <[email protected]> | 2022-02-05 16:16:17 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-05 16:16:17 -0600 |
| commit | 56a469a999774c8b8683adeb59b243fdf85b14c9 (patch) | |
| tree | 2e11f067d6e4caae9301986a0b432825cc65839e /schema.prisma | |
| parent | e883275d831f3d9bf3a57bd91e0deeeaf4951242 (diff) | |
| download | muse-56a469a999774c8b8683adeb59b243fdf85b14c9.tar.xz muse-56a469a999774c8b8683adeb59b243fdf85b14c9.zip | |
Migrate to slash commands (#431)
Co-authored-by: Federico fuji97 Rapetti <[email protected]>
Diffstat (limited to 'schema.prisma')
| -rw-r--r-- | schema.prisma | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/schema.prisma b/schema.prisma index 95ce596..66ea3b7 100644 --- a/schema.prisma +++ b/schema.prisma @@ -25,25 +25,20 @@ model KeyValueCache { model Setting { guildId String @id - prefix String - channel String? - finishedSetup Boolean @default(false) playlistLimit Int @default(50) + roleId String? createdAt DateTime @default(now()) updatedAt DateTime @updatedAt } -model Shortcut { +model FavoriteQuery { id Int @id @default(autoincrement()) guildId String authorId String - shortcut String - command String + name String + query String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt - - @@index([shortcut], map: "shortcuts_shortcut") - @@index([guildId], map: "shortcuts_guild_id") - @@index([guildId, shortcut]) + @@unique([guildId, name]) } |
