25 lines
551 B
TypeScript
25 lines
551 B
TypeScript
import { Entity, Column, OneToMany } from "typeorm";
|
|
import { EntityBase } from "./base/Base";
|
|
import { KpiLink } from "./kpiLink";
|
|
|
|
@Entity("kpiGroup")
|
|
export class KpiGroup extends EntityBase {
|
|
@Column({
|
|
nullable: true,
|
|
comment: "ชื่อกลุ่มงาน",
|
|
default: null,
|
|
})
|
|
nameGroupKPI: string;
|
|
|
|
@OneToMany(() => KpiLink, (kpiLink) => kpiLink.kpiGroup)
|
|
kpiLinks: KpiLink[];
|
|
}
|
|
export class createKpiGroup {
|
|
@Column()
|
|
nameGroupKPI: string;
|
|
}
|
|
|
|
export class updateKpiGroup {
|
|
@Column()
|
|
nameGroupKPI: string;
|
|
}
|