hrms-api-kpi/src/entities/kpiGroup.ts

26 lines
551 B
TypeScript
Raw Normal View History

2024-04-19 09:44:46 +07:00
import { Entity, Column, OneToMany } from "typeorm";
2024-04-17 16:53:20 +07:00
import { EntityBase } from "./base/Base";
2024-04-19 09:44:46 +07:00
import { KpiLink } from "./kpiLink";
2024-04-17 16:53:20 +07:00
@Entity("kpiGroup")
export class KpiGroup extends EntityBase {
@Column({
nullable: true,
comment: "ชื่อกลุ่มงาน",
default: null,
})
nameGroupKPI: string;
2024-04-19 09:44:46 +07:00
@OneToMany(() => KpiLink, (kpiLink) => kpiLink.kpiGroup)
kpiLinks: KpiLink[];
2024-04-17 16:53:20 +07:00
}
2024-04-19 09:44:46 +07:00
export class createKpiGroup {
2024-04-17 16:53:20 +07:00
@Column()
nameGroupKPI: string;
}
export class updateKpiGroup {
2024-04-17 16:53:20 +07:00
@Column()
nameGroupKPI: string;
}