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

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

@ -1,4 +1,4 @@
import { Entity, Column, ManyToOne, JoinColumn, } from "typeorm";
import { Entity, Column, ManyToOne, JoinColumn } from "typeorm";
import { EntityBase } from "./base/Base";
import { EmployeePosType } from "./EmployeePosType";
import { EmployeePosLevel } from "./EmployeePosLevel";
@ -17,21 +17,21 @@ export class EmployeePosDict extends EntityBase {
length: 40,
comment: "คีย์นอก(FK)ของตาราง employeePosType",
})
employeePosTypeId: string;
posTypeId: string;
@Column({
length: 40,
comment: "คีย์นอก(FK)ของตาราง employeePosLevel",
})
employeePosLevelId: string;
posLevelId: string;
@ManyToOne(() => EmployeePosType, (employeePosType) => employeePosType)
@JoinColumn({ name: "employeePosTypeId" })
employeePosType: EmployeePosType;
@ManyToOne(() => EmployeePosType, (posType) => posType)
@JoinColumn({ name: "posTypeId" })
posType: EmployeePosType;
@ManyToOne(() => EmployeePosLevel, (employeePosLevel) => employeePosLevel)
@JoinColumn({ name: "employeePosLevelId" })
employeePosLevel: EmployeePosLevel;
@ManyToOne(() => EmployeePosLevel, (posLevel) => posLevel)
@JoinColumn({ name: "posLevelId" })
posLevel: EmployeePosLevel;
}
export class CreateEmployeePosDict {
@ -39,10 +39,10 @@ export class CreateEmployeePosDict {
posDictName: string | null;
@Column("uuid")
employeePosTypeId: string | null;
posTypeId: string | null;
@Column("uuid")
employeePosLevelId: string | null;
posLevelId: string | null;
}
export class UpdateEmployeePosDict {
@ -50,8 +50,8 @@ export class UpdateEmployeePosDict {
posDictName: string;
@Column("uuid")
employeePosTypeId: string;
posTypeId: string;
@Column("uuid")
employeePosLevelId: string;
}
posLevelId: string;
}