product admin crud

This commit is contained in:
user
2025-10-20 19:16:19 +03:00
parent e239b3bbf6
commit 2cc0ca4c51
22 changed files with 2601 additions and 35 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE "product" ADD COLUMN "link_id" varchar(32) NOT NULL;--> statement-breakpoint
ALTER TABLE "product" ADD CONSTRAINT "product_link_id_unique" UNIQUE("link_id");

File diff suppressed because it is too large Load Diff

View File

@@ -50,6 +50,13 @@
"when": 1760975763245,
"tag": "0006_puzzling_avengers",
"breakpoints": true
},
{
"idx": 7,
"version": "7",
"when": 1760976587011,
"tag": "0007_true_garia",
"breakpoints": true
}
]
}

View File

@@ -62,6 +62,7 @@ export const order = pgTable("order", {
export const product = pgTable("product", {
id: serial("id").primaryKey(),
linkId: varchar("link_id", { length: 32 }).notNull().unique(),
title: varchar("title", { length: 64 }).notNull(),
description: text("description").notNull(),
longDescription: text("long_description").notNull(),