Entity profileSalary

This commit is contained in:
Bright 2024-02-23 14:19:39 +07:00
parent d5e318f8dc
commit e147412ea4
3 changed files with 102 additions and 0 deletions

View file

@ -3,6 +3,7 @@ import { EntityBase } from "./base/Base";
import { PosMaster } from "./PosMaster";
import { PosLevel } from "./PosLevel";
import { PosType } from "./PosType";
import { ProfileSalary } from "./ProfileSalary";
@Entity("profile")
export class Profile extends EntityBase {
@ -113,6 +114,9 @@ export class Profile extends EntityBase {
@OneToMany(() => PosMaster, (posMaster) => posMaster.next_holder)
next_holders: PosMaster[];
@OneToMany(() => ProfileSalary, (profileSalary) => profileSalary.profile)
profileSalary: ProfileSalary[];
@ManyToOne(() => PosLevel, (posLevel) => posLevel.posLevels)
@JoinColumn({ name: "posLevelId" })
posLevel: PosLevel;