diff --git a/prisma/migrations/20241018074812_add_max_worker_field/migration.sql b/prisma/migrations/20241018074812_add_max_worker_field/migration.sql new file mode 100644 index 0000000..491e62e --- /dev/null +++ b/prisma/migrations/20241018074812_add_max_worker_field/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Quotation" ADD COLUMN "workerMax" INTEGER; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 823f9b5..9d8ca0b 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1123,6 +1123,8 @@ model Quotation { worker QuotationWorker[] + workerMax Int? + urgent Boolean @default(false) productServiceList QuotationProductServiceList[] diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index e08ecd2..e5e18d5 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -60,6 +60,8 @@ type QuotationCreate = { } )[]; + workerMax?: number | null; + customerBranchId: string; urgent?: boolean; @@ -113,6 +115,8 @@ type QuotationUpdate = { } )[]; + workerMax?: number | null; + customerBranchId?: string; urgent?: boolean;