Migration ฟิลด์ตาราง profileLeave, profileLeaveHistory & สร้างตาราง profileAbsentLate, profileEmployeeAbsentLate
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m52s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m52s
This commit is contained in:
parent
41ad2a44e8
commit
a76bda34b4
9 changed files with 706 additions and 0 deletions
|
|
@ -107,6 +107,24 @@ export class ProfileLeave extends EntityBase {
|
|||
})
|
||||
isDeleted: boolean;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ประเภทย่อยการลา (เช่น ศึกษาต่อ, ฝึกอบรม, ปฎอบัติการวิจัย, ดูงาน)",
|
||||
type: "varchar",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
leaveSubTypeName: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ประเทศที่ไป",
|
||||
type: "varchar",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
coupleDayLevelCountry: string;
|
||||
|
||||
@OneToMany(() => ProfileLeaveHistory, (v) => v.profileLeave)
|
||||
histories: ProfileLeaveHistory[];
|
||||
|
||||
|
|
@ -153,6 +171,8 @@ export class CreateProfileLeave {
|
|||
status?: string | null;
|
||||
reason: string | null;
|
||||
leaveId?: string | null;
|
||||
leaveSubTypeName?: string | null;
|
||||
coupleDayLevelCountry?: string | null;
|
||||
}
|
||||
|
||||
export class CreateProfileEmployeeLeave {
|
||||
|
|
@ -166,6 +186,8 @@ export class CreateProfileEmployeeLeave {
|
|||
status: string | null;
|
||||
reason: string | null;
|
||||
leaveId?: string | null;
|
||||
leaveSubTypeName?: string | null;
|
||||
coupleDayLevelCountry?: string | null;
|
||||
}
|
||||
|
||||
export type UpdateProfileLeave = {
|
||||
|
|
@ -177,4 +199,6 @@ export type UpdateProfileLeave = {
|
|||
totalLeave?: number | null;
|
||||
status?: string | null;
|
||||
reason?: string | null;
|
||||
leaveSubTypeName?: string | null;
|
||||
coupleDayLevelCountry?: string | null;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue