jws-backend/prisma/migrations/20250704070342_add_relation_seller_in_quotation/migration.sql
Kanjana 859a1e3def
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
chore: migration
2025-07-04 14:08:54 +07:00

5 lines
239 B
SQL

-- AlterTable
ALTER TABLE "Quotation" ADD COLUMN "sellerId" TEXT;
-- AddForeignKey
ALTER TABLE "Quotation" ADD CONSTRAINT "Quotation_sellerId_fkey" FOREIGN KEY ("sellerId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;