relation profileEmployee

This commit is contained in:
AnandaTon 2024-05-13 16:37:51 +07:00
parent 9a7adc4eb5
commit b1c6f5fead
5 changed files with 76 additions and 7 deletions

View file

@ -10,6 +10,10 @@ import { ProfileTraining } from "./ProfileTraining";
import { ProfileInsignia } from "./ProfileInsignia";
import { ProfileHonor } from "./ProfileHonor";
import { ProfileAssessment } from "./ProfileAssessment";
import { ProfileLeave } from "./ProfileLeave";
import { ProfileDuty } from "./ProfileDuty";
import { ProfileNopaid } from "./ProfileNopaid";
import { ProfileDiscipline } from "./ProfileDiscipline";
@Entity("profileEmployee")
export class ProfileEmployee extends EntityBase {
@Column({
@ -216,6 +220,18 @@ export class ProfileEmployee extends EntityBase {
@OneToMany(() => ProfileAssessment, (v) => v.profileEmployee)
profileAssessments: ProfileAssessment[];
@OneToMany(() => ProfileLeave, (v) => v.profileEmployee)
profileLeaves: ProfileLeave[];
@OneToMany(() => ProfileDuty, (v) => v.profileEmployee)
profileDutys: ProfileDuty[];
@OneToMany(() => ProfileNopaid, (v) => v.profileEmployee)
profileNopaids: ProfileNopaid[];
@OneToMany(() => ProfileDiscipline, (v) => v.profileEmployee)
profileDisciplines: ProfileNopaid[];
@ManyToOne(() => EmployeePosLevel, (v) => v.profiles)
posLevel: EmployeePosLevel;