chore: migration
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s

This commit is contained in:
Kanjana 2025-07-04 14:08:24 +07:00
parent 2b255ff355
commit 859a1e3def
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,5 @@
-- 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;

View file

@ -511,6 +511,7 @@ model User {
contactName String? contactName String?
contactTel String? contactTel String?
quotation Quotation[]
} }
model UserResponsibleArea { model UserResponsibleArea {
@ -1386,6 +1387,9 @@ model Quotation {
invoice Invoice[] invoice Invoice[]
creditNote CreditNote[] creditNote CreditNote[]
seller User? @relation(fields: [sellerId], references: [id], onDelete: Cascade)
sellerId String?
} }
model QuotationPaySplit { model QuotationPaySplit {