diff --git a/src/server/db/schema.ts b/src/server/db/schema.ts index 3e949432..09cbac6b 100644 --- a/src/server/db/schema.ts +++ b/src/server/db/schema.ts @@ -55,9 +55,7 @@ export const lists = mySqlTable( updatedAt: timestamp("updatedAt").onUpdateNow(), boardId: bigint("boardId", { mode: "number" }).notNull(), index: int("index").notNull() - }, (t) => ({ - unq: unique().on(t.boardId, t.index), - }) + } ); export const listsRelations = relations(lists, ({ one, many }) => ({ @@ -86,9 +84,7 @@ export const cards = mySqlTable( updatedAt: timestamp("updatedAt").onUpdateNow(), listId: bigint("listId", { mode: "number" }).notNull(), index: int("index").notNull() - }, (t) => ({ - unq: unique().on(t.listId, t.index), - }) + } ); export const cardsRelations = relations(cards, ({ one }) => ({