another model

This commit is contained in:
2024-11-20 23:57:57 -05:00
parent fd08fd2886
commit ada465af64

9
src/db/schema/Brand.ts Normal file
View 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
})