mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-05 18:26:45 -05:00
10 lines
472 B
TypeScript
10 lines
472 B
TypeScript
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
|
|
}) |