feat: add visa fields

This commit is contained in:
Methapon Metanipat 2024-11-11 13:38:28 +07:00
parent c66cf6e3a0
commit 68f425a149
3 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "EmployeeVisa" ADD COLUMN "arrivalAt" TEXT,
ADD COLUMN "arrivalTM" TEXT,
ADD COLUMN "arrivalTMNo" TEXT,
ADD COLUMN "workerType" TEXT;

View file

@ -838,6 +838,11 @@ model EmployeeVisa {
mrz String?
remark String?
arrivalTM String?
arrivalTMNo String?
arrivalAt String?
workerType String?
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
employeeId String

View file

@ -40,8 +40,13 @@ type EmployeeVisaPayload = {
issuePlace: string;
issueDate: Date;
expireDate: Date;
mrz?: string;
remark?: string;
mrz?: string | null;
remark?: string | null;
arrivalTM: string;
arrivalTMNo: string;
arrivalAt: string;
workerType: string;
};
@Route("api/v1/employee/{employeeId}/visa")