feat: add work field
This commit is contained in:
parent
e9710cc82a
commit
36db3059e6
2 changed files with 2 additions and 0 deletions
|
|
@ -890,6 +890,7 @@ model EmployeeWork {
|
|||
workPermitNo String?
|
||||
workPermitIssueDate DateTime? @db.Date
|
||||
workPermitExpireDate DateTime? @db.Date
|
||||
workPermitAt String?
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
createdBy User? @relation(name: "EmployeeWorkCreatedByUser", fields: [createdByUserId], references: [id], onDelete: SetNull)
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ type EmployeeWorkPayload = {
|
|||
workPermitNo?: string | null;
|
||||
workPermitIssueDate?: Date | null;
|
||||
workPermitExpireDate?: Date | null;
|
||||
workPermitAt?: string | null;
|
||||
};
|
||||
|
||||
@Route("api/v1/employee/{employeeId}/work")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue