relation profileEmployee
This commit is contained in:
parent
a2d3e95641
commit
59607aafd1
6 changed files with 85 additions and 1 deletions
|
|
@ -5,7 +5,11 @@ import { EmployeePosType } from "./EmployeePosType";
|
|||
import { EmployeePosMaster } from "./EmployeePosMaster";
|
||||
import { ProfileSalaryEmployee } from "./ProfileSalaryEmployee";
|
||||
import { ProfileDisciplineEmployee } from "./ProfileDisciplineEmployee";
|
||||
|
||||
import { ProfileCertificate } from "./ProfileCertificate";
|
||||
import { ProfileTraining } from "./ProfileTraining";
|
||||
import { ProfileInsignia } from "./ProfileInsignia";
|
||||
import { ProfileHonor } from "./ProfileHonor";
|
||||
import { ProfileAssessment } from "./ProfileAssessment";
|
||||
@Entity("profileEmployee")
|
||||
export class ProfileEmployee extends EntityBase {
|
||||
@Column({
|
||||
|
|
@ -197,6 +201,21 @@ export class ProfileEmployee extends EntityBase {
|
|||
@OneToMany(() => ProfileDisciplineEmployee, (v) => v.profile)
|
||||
profileDiscipline: ProfileDisciplineEmployee[];
|
||||
|
||||
@OneToMany(() => ProfileCertificate, (v) => v.profileEmployee)
|
||||
profileCertificates: ProfileCertificate[];
|
||||
|
||||
@OneToMany(() => ProfileTraining, (v) => v.profileEmployee)
|
||||
profileTrainings: ProfileTraining[];
|
||||
|
||||
@OneToMany(() => ProfileInsignia, (v) => v.profileEmployee)
|
||||
profileInsignias: ProfileInsignia[];
|
||||
|
||||
@OneToMany(() => ProfileHonor, (v) => v.profileEmployee)
|
||||
profileHonors: ProfileHonor[];
|
||||
|
||||
@OneToMany(() => ProfileAssessment, (v) => v.profileEmployee)
|
||||
profileAssessments: ProfileAssessment[];
|
||||
|
||||
@ManyToOne(() => EmployeePosLevel, (v) => v.profiles)
|
||||
posLevel: EmployeePosLevel;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue