feat: profile gov entities
This commit is contained in:
parent
21699284db
commit
232211bcee
2 changed files with 229 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue