er ฝั่ง user
This commit is contained in:
parent
27da57f35e
commit
fae8d38013
16 changed files with 870 additions and 72 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue