เพิ่มรอบในแบบแผน
This commit is contained in:
parent
2f50a1983b
commit
4f54040982
3 changed files with 45 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { Entity, Column, OneToMany } from "typeorm";
|
||||
import { Entity, Column, OneToMany, ManyToOne, JoinColumn } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { KpiLink } from "./kpiLink";
|
||||
import { KpiPeriod } from "./kpiPeriod";
|
||||
|
||||
@Entity("kpiPlan")
|
||||
export class KpiPlan extends EntityBase {
|
||||
|
|
@ -287,6 +288,18 @@ export class KpiPlan extends EntityBase {
|
|||
default: null,
|
||||
})
|
||||
strategyChild5: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "ไอดีรอบ",
|
||||
default: null,
|
||||
})
|
||||
kpiPeriodId: string | null;
|
||||
|
||||
@ManyToOne(() => KpiPeriod, (kpiPeriod) => kpiPeriod.kpiPlans)
|
||||
@JoinColumn({ name: "kpiPeriodId" })
|
||||
kpiPeriod: KpiPeriod;
|
||||
}
|
||||
export class createKpiPlan {
|
||||
@Column()
|
||||
|
|
@ -327,6 +340,8 @@ export class createKpiPlan {
|
|||
strategy: number;
|
||||
@Column()
|
||||
strategyId: string | null;
|
||||
@Column()
|
||||
kpiPeriodId: string | null;
|
||||
}
|
||||
|
||||
export class updateKpiPlan {
|
||||
|
|
@ -368,4 +383,6 @@ export class updateKpiPlan {
|
|||
strategy: number;
|
||||
@Column()
|
||||
strategyId: string | null;
|
||||
@Column()
|
||||
kpiPeriodId: string | null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue