- File:
-
- 1 edited
-
database/drizzle/schema/builds.ts (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
database/drizzle/schema/builds.ts
re03e6fb rb0685a8 17 17 18 18 export const buildComponentsTable = pgTable("build_component", { 19 id: serial("id").primaryKey(), 19 20 buildId: integer("build_id") 20 21 .notNull() … … 23 24 .notNull() 24 25 .references(() => componentsTable.id, { onDelete: "cascade", onUpdate: "cascade" }), 25 numComponents: integer("num_components")26 .notNull()27 .default(1),28 26 }, 29 (t) => ({30 pk: primaryKey({ columns: [t.buildId, t.componentId] }),31 }),32 27 ); 33 28
Note:
See TracChangeset
for help on using the changeset viewer.
