feat: add Request.purchaseOrderId (nullable FK)

This commit is contained in:
toanhoang
2026-08-02 20:24:59 -04:00
parent 3dd1b22828
commit 65232fc62c
5 changed files with 158 additions and 18 deletions
@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "requests" ADD COLUMN "purchase_order_id" UUID;
-- AddForeignKey
ALTER TABLE "requests" ADD CONSTRAINT "requests_purchase_order_id_fkey" FOREIGN KEY ("purchase_order_id") REFERENCES "purchase_orders"("id") ON DELETE SET NULL ON UPDATE CASCADE;