no message

This commit is contained in:
kittapath 2024-11-11 14:48:14 +07:00
parent 6055802f10
commit ae249ebc8e
5 changed files with 397 additions and 8 deletions

View file

@ -1,4 +1,4 @@
import { Entity, Column, OneToMany, ManyToOne, Double } from "typeorm";
import { Entity, Column, OneToMany, ManyToOne, Double, ManyToMany } from "typeorm";
import { EntityBase } from "./base/Base";
import { EmployeePosLevel } from "./EmployeePosLevel";
import { EmployeePosType } from "./EmployeePosType";
@ -33,6 +33,7 @@ import { ProfileEmployeeEmployment } from "./ProfileEmployeeEmployment";
import { ProfileEdit } from "./ProfileEdit";
import { ProfileDevelopment } from "./ProfileDevelopment";
import { DevelopmentRequest } from "./DevelopmentRequest";
import { RoleKeycloak } from "./RoleKeycloak";
@Entity("profileEmployee")
export class ProfileEmployee extends EntityBase {
@ -192,6 +193,12 @@ export class ProfileEmployee extends EntityBase {
})
isLeave: boolean;
@Column({
comment: "สถานะการใช้งาน",
default: true,
})
isActive: boolean;
@Column({
nullable: true,
comment: "เหตุผลเกษียณ",
@ -801,6 +808,9 @@ export class ProfileEmployee extends EntityBase {
default: null,
})
dutyTimeEffectiveDate: Date;
@ManyToMany(() => RoleKeycloak, (roleKeycloak) => roleKeycloak.profileEmployees)
roleKeycloaks: RoleKeycloak[];
}
@Entity("profileEmployeeHistory")