13 lines
394 B
SQL
13 lines
394 B
SQL
CREATE TABLE "manufacturers" (
|
|
"id" serial PRIMARY KEY NOT NULL,
|
|
"name" text NOT NULL,
|
|
"slug" text NOT NULL,
|
|
"website" text NOT NULL,
|
|
"tier" integer DEFAULT 1 NOT NULL,
|
|
"active" boolean DEFAULT true NOT NULL,
|
|
"country" text,
|
|
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
CONSTRAINT "manufacturers_name_unique" UNIQUE("name"),
|
|
CONSTRAINT "manufacturers_slug_unique" UNIQUE("slug")
|
|
);
|