This commit is contained in:
Bright 2025-08-19 17:03:16 +07:00
parent 48e7aa0906
commit 9b18610822
2 changed files with 9 additions and 0 deletions

View file

@ -49,6 +49,7 @@ import { ProfileActposition } from "./ProfileActposition";
import { ProfileAssistance } from "./ProfileAssistance";
import { ProfileSalaryTemp } from "./ProfileSalaryTemp";
import { PositionSalaryEditHistory } from "./PositionSalaryEditHistory";
import { ProfileChangeName } from "./ProfileChangeName";
@Entity("profile")
export class Profile extends EntityBase {
@ -522,6 +523,9 @@ export class Profile extends EntityBase {
@OneToMany(() => PositionSalaryEditHistory, (v) => v.profile)
positionSalaryEditHistory: PositionSalaryEditHistory[];
@OneToMany(() => ProfileChangeName, (v) => v.profile)
profileChangeNames: ProfileChangeName[];
@ManyToOne(() => PosLevel, (posLevel) => posLevel.profiles)
@JoinColumn({ name: "posLevelId" })
posLevel: PosLevel;