add feild

This commit is contained in:
AdisakKanthawilang 2024-04-22 15:14:58 +07:00
parent 1c7d62e149
commit e5001f13eb

View file

@ -43,6 +43,22 @@ export class KpiUserEvaluation extends EntityBase {
})
profileId: string;
@Column({ // PENDING = รอการประเมิน , INPROGRESS = กําลังประเมิน , DONE = ประเมินเสร็จสิ้น
nullable: true,
length: 40,
comment: "สถานะการประเมินผล",
default: null,
})
evaluationStatus: string;
@Column({ // PASSED = ผ่านการประเมิน , NOTPASSED = ไม่ผ่านการประเมิน
nullable: true,
length: 40,
comment: "ผลการประเมิน",
default: null,
})
evaluationResults: string;
@ManyToOne(() => KpiPeriod, (kpiPeriod) => kpiPeriod.kpiUserEvaluation)
@JoinColumn({ name: "kpiPeriodId" })
kpiPeriod: KpiPeriod;
@ -59,6 +75,10 @@ export class createKpiUserEvaluation {
kpiPeriodId: string;
@Column()
profileId: string;
@Column()
evaluationStatus: string;
@Column()
evaluationResults: string;
}
export class updateKpiUserEvaluation {
@ -72,4 +92,8 @@ export class updateKpiUserEvaluation {
kpiPeriodId: string;
@Column()
profileId: string;
@Column()
evaluationStatus: string;
@Column()
evaluationResults: string;
}