refactor: change installments data

This commit is contained in:
Methapon Metanipat 2024-10-29 09:49:02 +07:00
parent e80e2f725b
commit f4efa45fdc
4 changed files with 24 additions and 5 deletions

View file

@ -0,0 +1,9 @@
/*
Warnings:
- You are about to drop the column `date` on the `QuotationPaySplit` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "QuotationPaySplit" DROP COLUMN "date",
ADD COLUMN "invoice" BOOLEAN NOT NULL DEFAULT false;

View file

@ -1166,9 +1166,9 @@ model Quotation {
model QuotationPaySplit {
id String @id @default(cuid())
no Int
date DateTime @db.Date
amount Float
no Int
amount Float
invoice Boolean @default(false)
quotation Quotation? @relation(fields: [quotationId], references: [id], onDelete: Cascade)
quotationId String?