Add tag IDs

This commit is contained in:
Isaac 2022-04-20 00:31:56 +01:00
parent bdbadd9f15
commit 366bf5eeb2

View File

@ -148,9 +148,9 @@ model Tag {
content String @db.Text
guild Guild @relation(fields: [guildId], references: [id])
guildId String @db.VarChar(19)
id Int @id @default(autoincrement())
name String
@@id([guildId, name])
@@unique([guildId, name])
@@map("tags")
}