2024-12-10 17:19:59 -05:00
|
|
|
import { pgTable, integer, varchar, text, uuid } from "drizzle-orm/pg-core";
|
2024-11-20 09:02:38 -05:00
|
|
|
import { sql } from "drizzle-orm";
|
2024-12-16 17:54:50 -05:00
|
|
|
import { timestamps } from "../../drizzle/schema/helpers/columns.helpers";
|
2024-11-20 09:02:38 -05:00
|
|
|
|
|
|
|
|
export const Build = pgTable("builds", {
|
|
|
|
|
id: integer().primaryKey().generatedAlwaysAsIdentity({ name: "build_id_seq", startWith: 1, increment: 1, minValue: 1, maxValue: 2147483647, cache: 1 }),
|
2024-12-10 17:19:59 -05:00
|
|
|
uuid: uuid().defaultRandom().unique(),
|
2024-11-20 09:02:38 -05:00
|
|
|
account_id: integer().notNull(),
|
|
|
|
|
name: varchar({length:255}).notNull(),
|
|
|
|
|
description: text(),
|
|
|
|
|
...timestamps
|
|
|
|
|
})
|