เพิ่มเครื่องราชฯ เพิ่มหน้ากรองลูกจ้างประจำก่อนประมวลผล
This commit is contained in:
parent
a462f2bddd
commit
c60beef7e3
13 changed files with 1745 additions and 1 deletions
58
src/entities/ProfileActpositionHistory.ts
Normal file
58
src/entities/ProfileActpositionHistory.ts
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
import { Entity, Column, ManyToOne, JoinColumn } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { ProfileActposition } from "./ProfileActposition";
|
||||
|
||||
@Entity("profileActpositionHistory")
|
||||
export class ProfileActpositionHistory extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "datetime",
|
||||
comment: "วันที่เริ่มต้น",
|
||||
default: null,
|
||||
})
|
||||
dateStart: Date;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "datetime",
|
||||
comment: "วันที่สิ้นสุด",
|
||||
default: null,
|
||||
})
|
||||
dateEnd: Date;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ตำแหน่งเลขที่",
|
||||
default: null,
|
||||
})
|
||||
posNo: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ตำแหน่ง",
|
||||
default: null,
|
||||
})
|
||||
position: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "สถานะ",
|
||||
default: null,
|
||||
})
|
||||
status: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง ProfileActposition",
|
||||
default: null,
|
||||
})
|
||||
profileActpositionId: string;
|
||||
|
||||
@ManyToOne(
|
||||
() => ProfileActposition,
|
||||
(profileActposition) => profileActposition.profileActpositionHistorys,
|
||||
)
|
||||
@JoinColumn({ name: "profileActpositionId" })
|
||||
histories: ProfileActposition;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue