fix: entity fields
This commit is contained in:
parent
f769a0820c
commit
c20676af5d
2 changed files with 10 additions and 9 deletions
|
|
@ -70,15 +70,13 @@ export class ProfileLeave extends EntityBase {
|
|||
})
|
||||
reason: string;
|
||||
|
||||
@OneToMany(() => ProfileLeaveHistory, (profileLeaveHistory) => profileLeaveHistory.histories)
|
||||
@OneToMany(() => ProfileLeaveHistory, (v) => v.histories)
|
||||
profileLeaves: ProfileLeaveHistory[];
|
||||
|
||||
@ManyToOne(() => LeaveType, (leaveType) => leaveType.profileLeave)
|
||||
@JoinColumn({ name: "leaveTypeId" })
|
||||
@ManyToOne(() => LeaveType, (v) => v.profileLeave)
|
||||
leaveType: LeaveType;
|
||||
|
||||
@ManyToOne(() => Profile, (profile) => profile.profileLeaves)
|
||||
@JoinColumn({ name: "profileId" })
|
||||
@ManyToOne(() => Profile, (v) => v.profileLeaves)
|
||||
profile: Profile;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue