From 6d92bd997f780d2ec01476a0170a7518031af4fa Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Sun, 20 Aug 2023 19:09:00 -0600 Subject: [PATCH] Schema fix --- src/server/schema.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server/schema.ts b/src/server/schema.ts index 34cecc5..1737419 100644 --- a/src/server/schema.ts +++ b/src/server/schema.ts @@ -55,9 +55,7 @@ export const logs = pgTable( { id: varchar("id", { length: 255 }).notNull().primaryKey(), created_at: timestamp("created_at").defaultNow(), - userId: varchar("userId", { length: 255 }) - .notNull() - .references(() => rooms.id, { onDelete: "cascade" }), + userId: varchar("userId", { length: 255 }).notNull(), roomId: varchar("roomId", { length: 255 }) .notNull() .references(() => rooms.id, { onDelete: "cascade" }),