สลับตำแหน่งเงินเดือน

This commit is contained in:
Kittapath 2024-03-28 11:44:16 +07:00
parent ab365257de
commit 021ee8cd6e
4 changed files with 74 additions and 1 deletions

View file

@ -124,6 +124,13 @@ export class ProfileSalary extends EntityBase {
})
templateDoc: string;
@Column({
nullable: true,
comment: "ลำดับตำแหน่ง",
default: null,
})
order: number;
@OneToMany(() => ProfileSalaryHistory, (profileSalaryHistory) => profileSalaryHistory.histories)
profileSalaryHistories: ProfileSalaryHistory[];

View file

@ -130,6 +130,13 @@ export class ProfileSalaryHistory extends EntityBase {
})
profileSalaryId: string;
@Column({
nullable: true,
comment: "ลำดับตำแหน่ง",
default: null,
})
order: number;
@ManyToOne(() => ProfileSalary, (profileSalary) => profileSalary.profileSalaryHistories)
@JoinColumn({ name: "profileSalaryId" })
histories: ProfileSalary;