diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 5c0cefd..be89a86 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -58,23 +58,19 @@ enum MatchingAlgorithms { } model MessageStyle { - id Int @id @default(autoincrement()) - guild_id String - name String - - show_author Boolean - show_image Boolean - show_thumbnail Boolean - show_footer Boolean - show_timestamp Boolean - - colour String @db.VarChar(6) - - title_mutator TextMutator? + id Int @id @default(autoincrement()) + guild_id String + name String + colour String @db.VarChar(7) // hex colour: #5865F2 + show_author Boolean + show_image Boolean + show_thumbnail Boolean + show_footer Boolean + show_timestamp Boolean + title_mutator TextMutator? description_mutator TextMutator? - - created_at DateTime @default(now()) - updated_at DateTime @updatedAt + created_at DateTime @default(now()) + updated_at DateTime @updatedAt @@unique([guild_id, name]) @@index([guild_id, created_at(sort: Desc)])