mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-05 18:26:45 -05:00
11 lines
471 B
TypeScript
11 lines
471 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 Build = pgTable("builds", {
|
|
id: integer().primaryKey().generatedAlwaysAsIdentity({ name: "build_id_seq", startWith: 1, increment: 1, minValue: 1, maxValue: 2147483647, cache: 1 }),
|
|
account_id: integer().notNull(),
|
|
name: varchar({length:255}).notNull(),
|
|
description: text(),
|
|
...timestamps
|
|
}) |