add entity org part 1
This commit is contained in:
parent
0f7edf5d15
commit
f36ff656ef
13 changed files with 1783 additions and 1 deletions
|
|
@ -5,6 +5,12 @@ import { PosLevel } from "./PosLevel";
|
|||
import { PosType } from "./PosType";
|
||||
import { ProfileSalary } from "./ProfileSalary";
|
||||
import { ProfileDiscipline } from "./ProfileDiscipline";
|
||||
import { ProfileCertificate } from "./ProfileCertificate";
|
||||
import { ProfileEducation } from "./ProfileEducation";
|
||||
import { ProfileTraining } from "./ProfileTraining";
|
||||
import { ProfileInsignia } from "./ProfileInsignia";
|
||||
import { ProfileHonor } from "./ProfileHonor";
|
||||
import { ProfileAssessment } from "./ProfileAssessment";
|
||||
|
||||
@Entity("profile")
|
||||
export class Profile extends EntityBase {
|
||||
|
|
@ -124,7 +130,7 @@ export class Profile extends EntityBase {
|
|||
default: null,
|
||||
})
|
||||
birthDate: Date;
|
||||
|
||||
|
||||
@OneToMany(() => PosMaster, (posMaster) => posMaster.current_holder)
|
||||
current_holders: PosMaster[];
|
||||
|
||||
|
|
@ -137,6 +143,24 @@ export class Profile extends EntityBase {
|
|||
@OneToMany(() => ProfileDiscipline, (profileDiscipline) => profileDiscipline.profile)
|
||||
profileDiscipline: ProfileDiscipline[];
|
||||
|
||||
@OneToMany(() => ProfileCertificate, (profileCertificate) => profileCertificate.profile)
|
||||
profileCertificates: ProfileCertificate[];
|
||||
|
||||
@OneToMany(() => ProfileEducation, (profileEducation) => profileEducation.profile)
|
||||
profileEducations: ProfileEducation[];
|
||||
|
||||
@OneToMany(() => ProfileTraining, (profileTraining) => profileTraining.profile)
|
||||
profileTrainings: ProfileTraining[];
|
||||
|
||||
@OneToMany(() => ProfileInsignia, (profileInsignia) => profileInsignia.profile)
|
||||
profileInsignias: ProfileInsignia[];
|
||||
|
||||
@OneToMany(() => ProfileHonor, (profileHonor) => profileHonor.profile)
|
||||
profileHonors: ProfileHonor[];
|
||||
|
||||
@OneToMany(() => ProfileAssessment, (profileAssessment) => profileAssessment.profile)
|
||||
profileAssessments: ProfileAssessment[];
|
||||
|
||||
@ManyToOne(() => PosLevel, (posLevel) => posLevel.posLevels)
|
||||
@JoinColumn({ name: "posLevelId" })
|
||||
posLevel: PosLevel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue