เพิ่มtableลูกจ้าง
This commit is contained in:
parent
912a8237e6
commit
21c044223c
11 changed files with 1490 additions and 15 deletions
|
|
@ -2,8 +2,10 @@ import { Entity, Column, ManyToOne, JoinColumn, OneToMany } from "typeorm";
|
|||
import { EntityBase } from "./base/Base";
|
||||
import { EmployeePosDict } from "./EmployeePosDict";
|
||||
import { EmployeePosType } from "./EmployeePosType";
|
||||
import { EmployeePosition } from "./EmployeePosition";
|
||||
import { ProfileEmployee } from "./ProfileEmployee";
|
||||
|
||||
enum EmployeePosLevelAuthoritys {
|
||||
enum EmployeePosLevelAuthoritys {
|
||||
HEAD = "HEAD",
|
||||
DEPUTY = "DEPUTY",
|
||||
GOVERNOR = "GOVERNOR",
|
||||
|
|
@ -42,8 +44,14 @@ export class EmployeePosLevel extends EntityBase {
|
|||
@JoinColumn({ name: "posTypeId" })
|
||||
posType: EmployeePosType;
|
||||
|
||||
@OneToMany(() => EmployeePosition, (position) => position.posLevel)
|
||||
positions: EmployeePosition[];
|
||||
|
||||
@OneToMany(() => EmployeePosDict, (posDict) => posDict.posLevel)
|
||||
posDicts: EmployeePosDict[];
|
||||
|
||||
@OneToMany(() => ProfileEmployee, (profile) => profile.posLevel)
|
||||
profiles: ProfileEmployee[];
|
||||
}
|
||||
|
||||
export class CreateEmployeePosLevel {
|
||||
|
|
@ -60,4 +68,6 @@ export class CreateEmployeePosLevel {
|
|||
posTypeId: string;
|
||||
}
|
||||
|
||||
export type UpdateEmployeePosLevel = Partial<CreateEmployeePosLevel> & { posLevelAuthority: EmployeePosLevelAuthoritys };
|
||||
export type UpdateEmployeePosLevel = Partial<CreateEmployeePosLevel> & {
|
||||
posLevelAuthority: EmployeePosLevelAuthoritys;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue