Fix Entity

This commit is contained in:
Bright 2024-05-15 14:34:21 +07:00
parent 67c54e3273
commit b7ca6795cb
6 changed files with 49 additions and 35 deletions

View file

@ -66,11 +66,8 @@ export class ProfileFamilyMother extends EntityBase {
})
profileEmployeeId: string;
@OneToMany(
() => ProfileFamilyMotherHistory,
(v) => v.histories,
)
profileFamilyMother: ProfileFamilyMotherHistory[];
@OneToMany(() => ProfileFamilyMotherHistory, (v) => v.profileFamilyMother)
histories: ProfileFamilyMotherHistory[];
@ManyToOne(() => Profile, (v) => v.profileFamilyMother)
@JoinColumn({ name: "profileId" })