✅ product admin crud
This commit is contained in:
2
packages/db/migrations/0007_true_garia.sql
Normal file
2
packages/db/migrations/0007_true_garia.sql
Normal 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");
|
||||
1575
packages/db/migrations/meta/0007_snapshot.json
Normal file
1575
packages/db/migrations/meta/0007_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -50,6 +50,13 @@
|
||||
"when": 1760975763245,
|
||||
"tag": "0006_puzzling_avengers",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 7,
|
||||
"version": "7",
|
||||
"when": 1760976587011,
|
||||
"tag": "0007_true_garia",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user