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