migrate add column isDeleted + API ลบข้อมูลฝึกอบรม/ดูงาน + การพัฒนารายบุคคล idp + รักษาการ Task #2276, #2279, #2278
All checks were successful
Build & Deploy on Dev / build (push) Successful in 50s

This commit is contained in:
harid 2026-02-03 17:44:30 +07:00
parent bb18fed9ae
commit 30bf5ad9e3
12 changed files with 317 additions and 9 deletions

View file

@ -86,6 +86,13 @@ export class ProfileActposition extends EntityBase {
})
profileEmployeeId: string;
@Column({
nullable: false,
comment: "สถานะลบข้อมูลรักษาการในตำแหน่ง",
default: false,
})
isDeleted: boolean;
@OneToMany(
() => ProfileActpositionHistory,
(profileActpositionHistory) => profileActpositionHistory.histories,

View file

@ -48,6 +48,13 @@ export class ProfileActpositionHistory extends EntityBase {
})
profileActpositionId: string;
@Column({
nullable: false,
comment: "สถานะลบข้อมูลรักษาการในตำแหน่ง",
default: false,
})
isDeleted: boolean;
@ManyToOne(
() => ProfileActposition,
(profileActposition) => profileActposition.profileActpositionHistorys,

View file

@ -154,6 +154,13 @@ export class ProfileDevelopment extends EntityBase {
})
kpiDevelopmentId: string;
@Column({
nullable: false,
comment: "สถานะลบข้อมูลการพัฒนารายบุคคล (Individual Development Plan)",
default: false,
})
isDeleted: boolean;
@OneToMany(
() => ProfileDevelopmentHistory,
(profileDevelopmentHistory) => profileDevelopmentHistory.histories,

View file

@ -144,6 +144,13 @@ export class ProfileDevelopmentHistory extends EntityBase {
})
profileDevelopmentId: string;
@Column({
nullable: false,
comment: "สถานะลบข้อมูลการพัฒนารายบุคคล (Individual Development Plan)",
default: false,
})
isDeleted: boolean;
@ManyToOne(
() => ProfileDevelopment,
(profileDevelopment) => profileDevelopment.profileDevelopmentHistories,

View file

@ -122,6 +122,13 @@ export class ProfileTraining extends EntityBase {
})
developmentId: string;
@Column({
nullable: false,
comment: "สถานะลบข้อมูลการฝึกอบรม/ดูงาน",
default: false,
})
isDeleted: boolean;
@OneToMany(
() => ProfileTrainingHistory,
(profileTrainingHistory) => profileTrainingHistory.histories,

View file

@ -98,6 +98,13 @@ export class ProfileTrainingHistory extends EntityBase {
})
isDate: boolean;
@Column({
nullable: false,
comment: "สถานะลบข้อมูลการฝึกอบรม/ดูงาน",
default: false,
})
isDeleted: boolean;
@ManyToOne(() => ProfileTraining, (profileTraining) => profileTraining.profileTrainingHistories)
@JoinColumn({ name: "profileTrainingId" })
histories: ProfileTraining;