เพิ่มรอบในแบบแผน
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("kpiRole")
|
||||
export class KpiRole extends EntityBase {
|
||||
|
|
@ -219,6 +220,18 @@ export class KpiRole extends EntityBase {
|
|||
default: null,
|
||||
})
|
||||
formula: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "ไอดีรอบ",
|
||||
default: null,
|
||||
})
|
||||
kpiPeriodId: string | null;
|
||||
|
||||
@ManyToOne(() => KpiPeriod, (kpiPeriod) => kpiPeriod.kpiRoles)
|
||||
@JoinColumn({ name: "kpiPeriodId" })
|
||||
kpiPeriod: KpiPeriod;
|
||||
}
|
||||
export class createKpiRole {
|
||||
@Column()
|
||||
|
|
@ -257,6 +270,8 @@ export class createKpiRole {
|
|||
meaning: string | null;
|
||||
@Column()
|
||||
formula: string | null;
|
||||
@Column()
|
||||
kpiPeriodId: string | null;
|
||||
}
|
||||
|
||||
export class updateKpiRole {
|
||||
|
|
@ -296,4 +311,6 @@ export class updateKpiRole {
|
|||
meaning: string | null;
|
||||
@Column()
|
||||
formula: string | null;
|
||||
@Column()
|
||||
kpiPeriodId: string | null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue