เพิ่มอัตราตำแหน่งลูกจ้าง

This commit is contained in:
Kittapath 2024-03-13 18:59:35 +07:00
parent 806fb21c61
commit ee6b6f7cc2
11 changed files with 2226 additions and 106 deletions

View file

@ -21,15 +21,14 @@ export class EmployeePosLevel extends EntityBase {
length: 40,
comment: "คีย์นอก(FK)ของตาราง employeePosType",
})
employeePosTypeId: string;
posTypeId: string;
@ManyToOne(() => EmployeePosType, (employeePosType) => employeePosType.employeePosLevels)
@JoinColumn({ name: "employeePosTypeId" })
employeePosType: EmployeePosType;
@OneToMany(() => EmployeePosDict, (employeePosDict) => employeePosDict.employeePosLevel)
employeePosDicts: EmployeePosDict[];
@ManyToOne(() => EmployeePosType, (posType) => posType.posLevels)
@JoinColumn({ name: "posTypeId" })
posType: EmployeePosType;
@OneToMany(() => EmployeePosDict, (posDict) => posDict.posLevel)
posDicts: EmployeePosDict[];
}
export class CreateEmployeePosLevel {
@ -40,8 +39,7 @@ export class CreateEmployeePosLevel {
posLevelRank: number;
@Column("uuid")
employeePosTypeId: string;
posTypeId: string;
}
export type UpdateEmployeePosLevel= Partial<CreateEmployeePosLevel>;
export type UpdateEmployeePosLevel = Partial<CreateEmployeePosLevel>;