Entity profileSalary
This commit is contained in:
parent
d5e318f8dc
commit
e147412ea4
3 changed files with 102 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue