refactoring schema + generate + migrate
This commit is contained in:
parent
38a62ca3a4
commit
a9cbcb719c
4 changed files with 595 additions and 4 deletions
|
|
@ -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] })],
|
||||
);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue