kpi period
This commit is contained in:
parent
5e223c86fb
commit
4914a0d733
3 changed files with 213 additions and 0 deletions
45
src/entities/kpi.ts
Normal file
45
src/entities/kpi.ts
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
import { Entity, Column } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("kpiPeriod")
|
||||
export class KpiPeriod extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "รอบการประเมิน",
|
||||
default: null,
|
||||
})
|
||||
durationKPI: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "datetime",
|
||||
comment: "วันเริ่มต้น",
|
||||
default: null,
|
||||
})
|
||||
startDate: Date;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "datetime",
|
||||
comment: "วันสิ้นสุด",
|
||||
default: null,
|
||||
})
|
||||
endDate: Date;
|
||||
}
|
||||
export class createKpi {
|
||||
@Column()
|
||||
durationKPI: string;
|
||||
@Column()
|
||||
startDate: Date;
|
||||
@Column()
|
||||
endDate: Date;
|
||||
}
|
||||
|
||||
export class updateKpi {
|
||||
@Column()
|
||||
durationKPI: string;
|
||||
@Column()
|
||||
startDate: Date;
|
||||
@Column()
|
||||
endDate: Date;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue