feat: add manufacturers table to schema

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-18 14:54:23 +02:00
parent 2cb83a63f1
commit 7de3e9e957
4 changed files with 1716 additions and 0 deletions

View File

@@ -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(