From 8ed642a62e8b41ce2eb02f5b22fc547e0791b90f Mon Sep 17 00:00:00 2001 From: ByteAtATime Date: Thu, 19 Dec 2024 15:52:30 -0800 Subject: [PATCH] feat: make message not null in messages table The signed message should never be null. --- packages/nextjs/services/db/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs/services/db/schema.ts b/packages/nextjs/services/db/schema.ts index ceb6cf4..bae6e52 100644 --- a/packages/nextjs/services/db/schema.ts +++ b/packages/nextjs/services/db/schema.ts @@ -7,7 +7,7 @@ export type MessageType = (typeof messageTypeEnum.enumValues)[number]; export const messagesTable = pgTable("messages", { id: uuid("id").defaultRandom().primaryKey(), type: messageTypeEnum("type").notNull(), - message: text("message"), + message: text("message").notNull(), creator: varchar("creator", { length: 42 }).notNull().$type
(), createdAt: timestamp("created_at").defaultNow().notNull(), });