checkpoint

This commit is contained in:
AdisakKanthawilang 2024-03-12 17:52:22 +07:00
parent 0c8abe053f
commit 8b2c20ec57
3 changed files with 211 additions and 0 deletions

View file

@ -12,6 +12,7 @@ import { ProfileInsignia } from "./ProfileInsignia";
import { ProfileHonor } from "./ProfileHonor";
import { ProfileAssessment } from "./ProfileAssessment";
import { ProfileLeave } from "./ProfileLeave";
import { ProfileAbility } from "./ProfileAbility";
@Entity("profile")
export class Profile extends EntityBase {
@ -165,6 +166,9 @@ export class Profile extends EntityBase {
@OneToMany(() => ProfileLeave, (profileLeave) => profileLeave.profile)
profileLeaves: ProfileLeave[];
@OneToMany(() => ProfileAbility, (profileAbility) => profileAbility.profile)
profileAbilities: ProfileAbility[];
@ManyToOne(() => PosLevel, (posLevel) => posLevel.posLevels)
@JoinColumn({ name: "posLevelId" })
posLevel: PosLevel;