feat(ST-507): add optional code fields to Product, Pbi and Story

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Janpeter Visser 2026-04-26 20:36:26 +02:00
parent c45ba1d0c2
commit 33d66bc7c4
3 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,9 @@
-- AlterTable
ALTER TABLE "products" ADD COLUMN "code" VARCHAR(30);
ALTER TABLE "pbis" ADD COLUMN "code" VARCHAR(30);
ALTER TABLE "stories" ADD COLUMN "code" VARCHAR(30);
-- CreateIndex
CREATE UNIQUE INDEX "products_user_id_code_key" ON "products"("user_id", "code");
CREATE UNIQUE INDEX "pbis_product_id_code_key" ON "pbis"("product_id", "code");
CREATE UNIQUE INDEX "stories_product_id_code_key" ON "stories"("product_id", "code");