mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-08 03:26:44 -05:00
9 lines
410 B
TypeScript
9 lines
410 B
TypeScript
import { pgTable, integer, varchar } from "drizzle-orm/pg-core";
|
|
import { sql } from "drizzle-orm";
|
|
import { timestamps } from "./helpers/columns.helpers";
|
|
|
|
export const brand = pgTable("brands", {
|
|
id: integer().primaryKey().generatedAlwaysAsIdentity({ name: "brands_id_seq", startWith: 1, increment: 1, minValue: 1, maxValue: 2147483647, cache: 1 }),
|
|
name: varchar({length:100}).notNull(),
|
|
...timestamps
|
|
}) |