mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
more database design
This commit is contained in:
10
src/db/schema/BuildComponent.ts
Normal file
10
src/db/schema/BuildComponent.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { pgTable, integer, varchar, text } from "drizzle-orm/pg-core";
|
||||
import { sql } from "drizzle-orm";
|
||||
import { timestamps } from "./helpers/columns.helpers";
|
||||
|
||||
export const BuildComponent = pgTable("builds_components", {
|
||||
id: integer().primaryKey().generatedAlwaysAsIdentity({ name: "build_components_id_seq", startWith: 1, increment: 1, minValue: 1, maxValue: 2147483647, cache: 1 }),
|
||||
build_id: integer().notNull(),
|
||||
product_id: integer().notNull(),
|
||||
...timestamps
|
||||
})
|
||||
Reference in New Issue
Block a user