family entity (father, mother, couple)

This commit is contained in:
Bright 2024-05-14 17:39:32 +07:00
parent 291d3199d2
commit 968842557a
8 changed files with 575 additions and 0 deletions

View file

@ -21,6 +21,10 @@ import { ProfileAbility } from "./ProfileAbility";
import { ProfileOther } from "./ProfileOther";
import { ProfileAvatar } from "./ProfileAvatar";
import { ProfileGovernment } from "./ProfileGovernment";
import { ProfileFamilyFather } from "./ProfileFamilyFather";
import { ProfileFamilyMother } from "./ProfileFamilyMother";
import { ProfileFamilyCouple } from "./ProfileFamilyCouple";
@Entity("profileEmployee")
export class ProfileEmployee extends EntityBase {
@Column({
@ -278,6 +282,15 @@ export class ProfileEmployee extends EntityBase {
@OneToMany(() => ProfileGovernment, (v) => v.profileEmployee)
profileGovernment: ProfileGovernment[];
@OneToMany(() => ProfileFamilyFather, (v) => v.profile)
profileFamilyFather: ProfileFamilyFather[];
@OneToMany(() => ProfileFamilyMother, (v) => v.profile)
profileFamilyMother: ProfileFamilyMother[];
@OneToMany(() => ProfileFamilyCouple , (v) => v.profile)
profileFamilyCouple: ProfileFamilyCouple[];
}
@Entity("profileEmployeeHistory")