เพิ่มอัตราตำแหน่งลูกจ้าง
This commit is contained in:
parent
806fb21c61
commit
ee6b6f7cc2
11 changed files with 2226 additions and 106 deletions
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue