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

@ -2,6 +2,7 @@ import { Entity, Column, OneToMany, ManyToOne, JoinColumn } from "typeorm";
import { EntityBase } from "./base/Base";
import { ProfileChangeNameHistory } from "./ProfileChangeNameHistory";
import { ProfileEmployee } from "./ProfileEmployee";
import { Profile } from "./Profile";
// import { ProfileChangeNameHistory } from "./ProfileChangeNameHistory";
@Entity("profileChangeName")
@ -85,6 +86,10 @@ export class ProfileChangeName extends EntityBase {
@ManyToOne(() => ProfileEmployee, (ProfileEmployee) => ProfileEmployee.profileChangeNames)
@JoinColumn({ name: "profileEmployeeId" })
profileEmployee: ProfileEmployee;
@ManyToOne(() => Profile, (Profile) => Profile.profileChangeNames)
@JoinColumn({ name: "profileId" })
profile: Profile;
}
export class CreateProfileChangeName {