migration and #2317(2)
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m27s

This commit is contained in:
Adisak 2026-02-19 10:36:32 +07:00
parent cc6e61f4de
commit 525a885e13
4 changed files with 29 additions and 6 deletions

View file

@ -39,6 +39,9 @@ export class EmployeePosType extends EntityBase {
@OneToMany(() => ProfileEmployee, (profile) => profile.posType)
profiles: ProfileEmployee[];
@OneToMany(() => ProfileEmployee, (profile) => profile.posTypeTemp)
profilesTemp: ProfileEmployee[];
}
export class CreateEmployeePosType {

View file

@ -796,6 +796,10 @@ export class ProfileEmployee extends EntityBase {
@JoinColumn({ name: "posLevelIdTemp" })
posLevelTemp: EmployeePosLevel;
@ManyToOne(() => EmployeePosType, (v) => v.profilesTemp)
@JoinColumn({ name: "posTypeIdTemp" })
posTypeTemp: EmployeePosType;
@ManyToOne(() => EmployeePosType, (v) => v.profiles)
posType: EmployeePosType;