chore: migration
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
This commit is contained in:
parent
2b255ff355
commit
859a1e3def
2 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
@ -511,6 +511,7 @@ model User {
|
|||
|
||||
contactName String?
|
||||
contactTel String?
|
||||
quotation Quotation[]
|
||||
}
|
||||
|
||||
model UserResponsibleArea {
|
||||
|
|
@ -1386,6 +1387,9 @@ model Quotation {
|
|||
|
||||
invoice Invoice[]
|
||||
creditNote CreditNote[]
|
||||
|
||||
seller User? @relation(fields: [sellerId], references: [id], onDelete: Cascade)
|
||||
sellerId String?
|
||||
}
|
||||
|
||||
model QuotationPaySplit {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue