From 4af2a2c1749f93b71fe51f61e6f784c51049b4d8 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 6 Jan 2025 11:53:16 +0700 Subject: [PATCH] refactor: add credit note status to table --- prisma/schema.prisma | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 9341741..d9e16d1 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1574,9 +1574,16 @@ model UserTask { userId String } +enum CreditNoteStatus { + Pending + Success +} + model CreditNote { id String @id @default(cuid()) + creditNoteStatus CreditNoteStatus @default(Pending) + quotation Quotation @relation(fields: [quotationId], references: [id], onDelete: Cascade) quotationId String