feat: profile gov entities

This commit is contained in:
Methapon2001 2024-03-20 16:16:44 +07:00
parent 21699284db
commit 232211bcee
2 changed files with 229 additions and 0 deletions

View file

@ -18,6 +18,7 @@ import { ProfileNopaid } from "./ProfileNopaid";
import { ProfileOther } from "./ProfileOther";
import { ProfileInformation } from "./ProfileInformation";
import { ProfileFamilyHistory } from "./ProfileFamily";
import { ProfileGovernment } from "./ProfileGovernment";
@Entity("profile")
export class Profile extends EntityBase {
@ -186,6 +187,9 @@ export class Profile extends EntityBase {
@OneToMany(() => ProfileFamilyHistory, (profileFamily) => profileFamily.profile)
profileFamily: ProfileFamilyHistory[];
@OneToMany(() => ProfileGovernment, (profileGovernment) => profileGovernment.profile)
profileGovernment: ProfileGovernment[];
@ManyToOne(() => PosLevel, (posLevel) => posLevel.profiles)
@JoinColumn({ name: "posLevelId" })
posLevel: PosLevel;