เพิ่มปีรอบตัวชี้วัด

This commit is contained in:
Kittapath 2024-05-07 10:17:19 +07:00
parent 2f23115718
commit d5252ee4b3
3 changed files with 48 additions and 1 deletions

View file

@ -7,6 +7,20 @@ import { KpiPlanHistory } from "./kpiPlanHistory";
@Entity("kpiPlan")
export class KpiPlan extends EntityBase {
@Column({
nullable: true,
comment: "รอบ",
default: null,
})
period: string;
@Column({
nullable: true,
comment: "ปี",
default: null,
})
year: string;
@Column({
nullable: true,
comment: "ลำดับ/รหัสตัวชี้วัด",

View file

@ -6,6 +6,20 @@ import { KpiRoleHistory } from "./kpiRoleHistory";
@Entity("kpiRole")
export class KpiRole extends EntityBase {
@Column({
nullable: true,
comment: "รอบ",
default: null,
})
period: string;
@Column({
nullable: true,
comment: "ปี",
default: null,
})
year: string;
@Column({
nullable: true,
comment: "ตำแหน่ง",
@ -224,7 +238,6 @@ export class KpiRole extends EntityBase {
})
documentInfoEvidence: string;
@ManyToOne(() => KpiPeriod, (kpiPeriod) => kpiPeriod.kpiRoles)
@JoinColumn({ name: "kpiPeriodId" })
kpiPeriod: KpiPeriod;