From ada465af64504e226f65ba6b50ad9a850559f60f Mon Sep 17 00:00:00 2001 From: Don Starwsburg Date: Wed, 20 Nov 2024 23:57:57 -0500 Subject: [PATCH] another model --- src/db/schema/Brand.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/db/schema/Brand.ts diff --git a/src/db/schema/Brand.ts b/src/db/schema/Brand.ts new file mode 100644 index 0000000..3a60f60 --- /dev/null +++ b/src/db/schema/Brand.ts @@ -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 +}) \ No newline at end of file