From 07eb42f5abbbffaef4be321db78323043c4e7cc1 Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 22 Apr 2022 00:18:30 +0100 Subject: [PATCH] Change message content from JSON to string to allow encryption --- prisma/schema.prisma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 930099e..fee035e 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -21,7 +21,7 @@ model ArchivedChannel { model ArchivedMessage { author ArchivedUser? @relation(fields: [ticketId, authorId], references: [ticketId, userId], onDelete: SetNull) authorId String @db.VarChar(19) - data Json + content String deleted Boolean @default(false) edited Boolean @default(false) id String @id @db.VarChar(19) @@ -103,7 +103,7 @@ model Guild { } model Tag { - content Json + content String guild Guild @relation(fields: [guildId], references: [id]) guildId String @db.VarChar(19) id Int @id @default(autoincrement())