feat: add manufacturers table to schema
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {
|
||||
boolean,
|
||||
doublePrecision,
|
||||
integer,
|
||||
pgTable,
|
||||
@@ -20,6 +21,19 @@ export const users = pgTable("users", {
|
||||
createdAt: timestamp("created_at").defaultNow().notNull(),
|
||||
});
|
||||
|
||||
// ── Manufacturers ────────────────────────────────────────────────────
|
||||
|
||||
export const manufacturers = pgTable("manufacturers", {
|
||||
id: serial("id").primaryKey(),
|
||||
name: text("name").notNull().unique(),
|
||||
slug: text("slug").notNull().unique(),
|
||||
website: text("website").notNull(),
|
||||
tier: integer("tier").notNull().default(1),
|
||||
active: boolean("active").notNull().default(true),
|
||||
country: text("country"),
|
||||
createdAt: timestamp("created_at").defaultNow().notNull(),
|
||||
});
|
||||
|
||||
// ── Categories ──────────────────────────────────────────────────────
|
||||
|
||||
export const categories = pgTable(
|
||||
|
||||
Reference in New Issue
Block a user