mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 10:46:44 -05:00
another model
This commit is contained in:
9
src/db/schema/Brand.ts
Normal file
9
src/db/schema/Brand.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
})
|
||||
Reference in New Issue
Block a user