feat: add AssetItem.purchaseOrderId (nullable FK)

This commit is contained in:
toanhoang
2026-08-02 20:09:06 -04:00
parent 4d12885500
commit a6d7c7b302
5 changed files with 155 additions and 20 deletions
@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "asset_items" ADD COLUMN "purchase_order_id" UUID;
-- AddForeignKey
ALTER TABLE "asset_items" ADD CONSTRAINT "asset_items_purchase_order_id_fkey" FOREIGN KEY ("purchase_order_id") REFERENCES "purchase_orders"("id") ON DELETE SET NULL ON UPDATE CASCADE;