diff --git a/src/entities/kpiUserEvaluation.ts b/src/entities/kpiUserEvaluation.ts index 0ddfe0f..2a29e86 100644 --- a/src/entities/kpiUserEvaluation.ts +++ b/src/entities/kpiUserEvaluation.ts @@ -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; }