feat: add visa fields
This commit is contained in:
parent
c66cf6e3a0
commit
68f425a149
3 changed files with 17 additions and 2 deletions
|
|
@ -0,0 +1,5 @@
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "EmployeeVisa" ADD COLUMN "arrivalAt" TEXT,
|
||||||
|
ADD COLUMN "arrivalTM" TEXT,
|
||||||
|
ADD COLUMN "arrivalTMNo" TEXT,
|
||||||
|
ADD COLUMN "workerType" TEXT;
|
||||||
|
|
@ -838,6 +838,11 @@ model EmployeeVisa {
|
||||||
mrz String?
|
mrz String?
|
||||||
remark String?
|
remark String?
|
||||||
|
|
||||||
|
arrivalTM String?
|
||||||
|
arrivalTMNo String?
|
||||||
|
arrivalAt String?
|
||||||
|
workerType String?
|
||||||
|
|
||||||
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
|
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
|
||||||
employeeId String
|
employeeId String
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,13 @@ type EmployeeVisaPayload = {
|
||||||
issuePlace: string;
|
issuePlace: string;
|
||||||
issueDate: Date;
|
issueDate: Date;
|
||||||
expireDate: Date;
|
expireDate: Date;
|
||||||
mrz?: string;
|
mrz?: string | null;
|
||||||
remark?: string;
|
remark?: string | null;
|
||||||
|
|
||||||
|
arrivalTM: string;
|
||||||
|
arrivalTMNo: string;
|
||||||
|
arrivalAt: string;
|
||||||
|
workerType: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@Route("api/v1/employee/{employeeId}/visa")
|
@Route("api/v1/employee/{employeeId}/visa")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue