71 lines
1.4 KiB
TypeScript
71 lines
1.4 KiB
TypeScript
import {
|
|
Entity,
|
|
Column,
|
|
OneToMany,
|
|
JoinColumn,
|
|
ManyToOne,
|
|
Double,
|
|
ManyToMany,
|
|
JoinTable,
|
|
} from "typeorm";
|
|
import { EntityBase } from "./base/Base";
|
|
|
|
|
|
@Entity("tenurePositionEmployee")
|
|
export class TenurePositionEmployee extends EntityBase {
|
|
@Column({
|
|
nullable: true,
|
|
length: 40,
|
|
comment: "คีย์นอก(FK)ของตาราง ProfileEmployee",
|
|
default: null,
|
|
})
|
|
profileEmployeeId: string;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
comment: "ชื่อตำแหน่ง",
|
|
default: null,
|
|
length: 255,
|
|
})
|
|
positionName: string;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
comment: "จำนวนวัน",
|
|
default: null,
|
|
})
|
|
days_diff: number;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
comment: "จำนวนปีดำรงตำแหน่งงปัจจุบัน",
|
|
default: null,
|
|
})
|
|
Years: number;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
comment: "จำนวนเดือนดำรงตำแหน่งงปัจจุบัน",
|
|
default: null,
|
|
})
|
|
Months: number;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
comment: "จำนวนวันดำรงตำแหน่งงปัจจุบัน",
|
|
default: null,
|
|
})
|
|
Days: number;
|
|
|
|
}
|
|
|
|
export class CreateTenurePositionEmployee {
|
|
profileEmployeeId: string;
|
|
positionName: string | null;
|
|
days_diff: number | null;
|
|
Years: number | null;
|
|
Months: number | null;
|
|
Days: number | null;
|
|
}
|
|
|
|
|