Skip to content

Commit

Permalink
feat: make message not null in messages table
Browse files Browse the repository at this point in the history
The signed message should never be null.
  • Loading branch information
ByteAtATime committed Dec 19, 2024
1 parent 5de3e75 commit 8ed642a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/services/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Address>(),
createdAt: timestamp("created_at").defaultNow().notNull(),
});
Expand Down

0 comments on commit 8ed642a

Please sign in to comment.