fix leave
This commit is contained in:
parent
d8a47d88bc
commit
816682357c
2 changed files with 44 additions and 0 deletions
|
|
@ -86,6 +86,14 @@ export class ProfileLeave extends EntityBase {
|
|||
})
|
||||
reason: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง LeaveRequest(hrms)",
|
||||
default: null,
|
||||
})
|
||||
leaveId: string;
|
||||
|
||||
@OneToMany(() => ProfileLeaveHistory, (v) => v.profileLeave)
|
||||
histories: ProfileLeaveHistory[];
|
||||
|
||||
|
|
@ -124,6 +132,7 @@ export class CreateProfileLeave {
|
|||
totalLeave?: number | null;
|
||||
status?: string | null;
|
||||
reason: string | null;
|
||||
leaveId?: string | null;
|
||||
}
|
||||
|
||||
export class CreateProfileEmployeeLeave {
|
||||
|
|
@ -136,6 +145,7 @@ export class CreateProfileEmployeeLeave {
|
|||
totalLeave: number | null;
|
||||
status: string | null;
|
||||
reason: string | null;
|
||||
leaveId?: string | null;
|
||||
}
|
||||
|
||||
export type UpdateProfileLeave = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue