er ฝั่ง user

This commit is contained in:
Kittapath 2024-04-22 15:50:04 +07:00
parent 27da57f35e
commit fae8d38013
16 changed files with 870 additions and 72 deletions

View file

@ -2,6 +2,7 @@ import { Entity, Column, OneToMany, ManyToOne, JoinColumn } from "typeorm";
import { EntityBase } from "./base/Base";
import { KpiLink } from "./kpiLink";
import { KpiPeriod } from "./kpiPeriod";
import { KpiUserPlanned } from "./kpiUserPlanned";
@Entity("kpiPlan")
export class KpiPlan extends EntityBase {
@ -287,6 +288,9 @@ export class KpiPlan extends EntityBase {
@ManyToOne(() => KpiPeriod, (kpiPeriod) => kpiPeriod.kpiPlans)
@JoinColumn({ name: "kpiPeriodId" })
kpiPeriod: KpiPeriod;
@OneToMany(() => KpiUserPlanned, (kpiUserPlanned) => kpiUserPlanned.kpiPlans)
kpiUserPlanneds: KpiUserPlanned[];
}
export class createKpiPlan {
@Column()