add entity org part 2

This commit is contained in:
AdisakKanthawilang 2024-03-13 10:43:50 +07:00
parent 8717494690
commit d5e79acb82
11 changed files with 1442 additions and 1 deletions

View file

@ -13,6 +13,9 @@ import { ProfileHonor } from "./ProfileHonor";
import { ProfileAssessment } from "./ProfileAssessment";
import { ProfileLeave } from "./ProfileLeave";
import { ProfileAbility } from "./ProfileAbility";
import { ProfileDuty } from "./ProfileDutys";
import { ProfileNopaid } from "./ProfileNopaid";
import { ProfileOther } from "./ProfileOther";
@Entity("profile")
export class Profile extends EntityBase {
@ -169,6 +172,15 @@ export class Profile extends EntityBase {
@OneToMany(() => ProfileAbility, (profileAbility) => profileAbility.profile)
profileAbilities: ProfileAbility[];
@OneToMany(() => ProfileDuty, (profileDuty) => profileDuty.profile)
profileDutys: ProfileDuty[];
@OneToMany(() => ProfileNopaid, (profileNopaid) => profileNopaid.profile)
profileNopaids: ProfileNopaid[];
@OneToMany(() => ProfileOther, (profileOther) => profileOther.profile)
profileOthers: ProfileOther[];
@ManyToOne(() => PosLevel, (posLevel) => posLevel.posLevels)
@JoinColumn({ name: "posLevelId" })
posLevel: PosLevel;