From fc22c38472260068b9206def803653993833b5c5 Mon Sep 17 00:00:00 2001 From: Kanjana Date: Fri, 11 Jul 2025 11:09:46 +0700 Subject: [PATCH] feat: change jobType in EmployeeWork to businessTypeId --- prisma/schema.prisma | 2 +- src/controllers/03-employee-work-controller.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index e444ae1..771f8f2 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -965,7 +965,7 @@ model EmployeeWork { ownerName String? positionName String? - jobType String? + businessTypeId String? workplace String? identityNo String? workPermitNo String? diff --git a/src/controllers/03-employee-work-controller.ts b/src/controllers/03-employee-work-controller.ts index 89f8ccf..ebf4dac 100644 --- a/src/controllers/03-employee-work-controller.ts +++ b/src/controllers/03-employee-work-controller.ts @@ -39,7 +39,7 @@ function globalAllow(user: RequestWithUser["user"]) { type EmployeeWorkPayload = { ownerName?: string | null; positionName?: string | null; - jobType?: string | null; + businessTypeId?: string | null; workplace?: string | null; identityNo?: string | null; workPermitNo?: string | null;