no message
This commit is contained in:
parent
305fd51c99
commit
b3adb67e44
13 changed files with 497 additions and 121 deletions
|
|
@ -2,6 +2,7 @@ import { Entity, Column, OneToMany, ManyToOne, JoinColumn } from "typeorm";
|
|||
import { EntityBase } from "./base/Base";
|
||||
import { KpiCapacity } from "./kpiCapacity";
|
||||
import { KpiUserEvaluation } from "./kpiUserEvaluation";
|
||||
import { KpiUserEvaluationReasonCapacity } from "./kpiUserEvaluationReasonCapacity";
|
||||
|
||||
@Entity("kpiUserCapacity")
|
||||
export class KpiUserCapacity extends EntityBase {
|
||||
|
|
@ -57,9 +58,15 @@ export class KpiUserCapacity extends EntityBase {
|
|||
@ManyToOne(() => KpiCapacity, (kpiCapacity) => kpiCapacity.kpiUserCapacitys)
|
||||
@JoinColumn({ name: "kpiCapacityId" })
|
||||
kpiCapacity: KpiCapacity;
|
||||
|
||||
@OneToMany(
|
||||
() => KpiUserEvaluationReasonCapacity,
|
||||
(kpiUserEvaluationReasonCapacity) => kpiUserEvaluationReasonCapacity.kpiUserCapacity,
|
||||
)
|
||||
kpiUserEvaluationReasonCapacitys: KpiUserEvaluationReasonCapacity[];
|
||||
}
|
||||
|
||||
export class KpiUserCapacityDataPoint {
|
||||
id: string;
|
||||
point: number;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue