refactoring schema + generate + migrate

This commit is contained in:
lila 2026-04-02 15:48:48 +02:00
parent 38a62ca3a4
commit a9cbcb719c
4 changed files with 595 additions and 4 deletions

View file

@ -165,10 +165,7 @@ export const deck_terms = pgTable(
.references(() => terms.id, { onDelete: "cascade" }),
added_at: timestamp({ withTimezone: true }).defaultNow().notNull(),
},
(table) => [
primaryKey({ columns: [table.deck_id, table.term_id] }),
index("idx_deck_terms_term").on(table.term_id),
],
(table) => [primaryKey({ columns: [table.deck_id, table.term_id] })],
);
/*