hrms-api-kpi/src/entities/kpiGroup.ts
2024-04-19 09:44:46 +07:00

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;
}