เพิ่มฟิววินัย
This commit is contained in:
parent
07c310ae26
commit
c41b0f008a
4 changed files with 44 additions and 5 deletions
|
|
@ -4,6 +4,7 @@ import { PosMaster } from "./PosMaster";
|
|||
import { PosLevel } from "./PosLevel";
|
||||
import { PosType } from "./PosType";
|
||||
import { ProfileSalary } from "./ProfileSalary";
|
||||
import { ProfileDiscipline } from "./ProfileDiscipline";
|
||||
|
||||
@Entity("profile")
|
||||
export class Profile extends EntityBase {
|
||||
|
|
@ -108,6 +109,14 @@ export class Profile extends EntityBase {
|
|||
})
|
||||
isProbation: boolean;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "datetime",
|
||||
comment: "วันที่พักราชการ",
|
||||
default: null,
|
||||
})
|
||||
dateRetire: Date;
|
||||
|
||||
@OneToMany(() => PosMaster, (posMaster) => posMaster.current_holder)
|
||||
current_holders: PosMaster[];
|
||||
|
||||
|
|
@ -115,7 +124,10 @@ export class Profile extends EntityBase {
|
|||
next_holders: PosMaster[];
|
||||
|
||||
@OneToMany(() => ProfileSalary, (profileSalary) => profileSalary.profile)
|
||||
profileSalary: ProfileSalary[];
|
||||
profileSalary: ProfileSalary[];
|
||||
|
||||
@OneToMany(() => ProfileDiscipline, (profileDiscipline) => profileDiscipline.profile)
|
||||
profileDiscipline: ProfileDiscipline[];
|
||||
|
||||
@ManyToOne(() => PosLevel, (posLevel) => posLevel.posLevels)
|
||||
@JoinColumn({ name: "posLevelId" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue