From a42e353aa48739149fb7e292b6cf5a0a8f5a6c1e Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Mon, 5 May 2025 23:02:47 +0100 Subject: [PATCH] style colour length to 7 from 6 --- prisma/schema.prisma | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) 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)])