er ฝั่ง user
This commit is contained in:
parent
27da57f35e
commit
fae8d38013
16 changed files with 870 additions and 72 deletions
|
|
@ -1,6 +1,14 @@
|
|||
import { Entity, Column, OneToMany, ManyToOne, JoinColumn } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { KpiPeriod } from "./kpiPeriod";
|
||||
import { KpiUserHead } from "./kpiUserHead";
|
||||
import { KpiUserGroup } from "./kpiUserGroup";
|
||||
import { KpiUserExecutive } from "./kpiUserExecutive";
|
||||
import { KpiUserDirector } from "./kpiUserDirector";
|
||||
import { KpiUserInspector } from "./kpiUserInspector";
|
||||
import { KpiUserSpecial } from "./kpiUserSpecial";
|
||||
import { KpiUserRole } from "./kpiUserRole";
|
||||
import { KpiUserPlanned } from "./kpiUserPlanned";
|
||||
@Entity("kpiUserEvaluation")
|
||||
export class KpiUserEvaluation extends EntityBase {
|
||||
@Column({
|
||||
|
|
@ -46,6 +54,30 @@ export class KpiUserEvaluation extends EntityBase {
|
|||
@ManyToOne(() => KpiPeriod, (kpiPeriod) => kpiPeriod.kpiUserEvaluation)
|
||||
@JoinColumn({ name: "kpiPeriodId" })
|
||||
kpiPeriod: KpiPeriod;
|
||||
|
||||
@OneToMany(() => KpiUserHead, (kpiUserHead) => kpiUserHead.kpiUserEvaluations)
|
||||
kpiUserHeads: KpiUserHead[];
|
||||
|
||||
@OneToMany(() => KpiUserGroup, (kpiUserGroup) => kpiUserGroup.kpiUserEvaluations)
|
||||
kpiUserGroups: KpiUserGroup[];
|
||||
|
||||
@OneToMany(() => KpiUserExecutive, (kpiUserExecutive) => kpiUserExecutive.kpiUserEvaluations)
|
||||
kpiUserExecutives: KpiUserExecutive[];
|
||||
|
||||
@OneToMany(() => KpiUserDirector, (kpiUserDirector) => kpiUserDirector.kpiUserEvaluations)
|
||||
kpiUserDirectors: KpiUserDirector[];
|
||||
|
||||
@OneToMany(() => KpiUserInspector, (kpiUserInspector) => kpiUserInspector.kpiUserEvaluations)
|
||||
kpiUserInspectors: KpiUserInspector[];
|
||||
|
||||
@OneToMany(() => KpiUserPlanned, (kpiUserPlanned) => kpiUserPlanned.kpiUserEvaluations)
|
||||
kpiUserPlanneds: KpiUserPlanned[];
|
||||
|
||||
@OneToMany(() => KpiUserRole, (kpiUserRole) => kpiUserRole.kpiUserEvaluations)
|
||||
kpiUserRoles: KpiUserRole[];
|
||||
|
||||
@OneToMany(() => KpiUserSpecial, (kpiUserSpecial) => kpiUserSpecial.kpiUserEvaluations)
|
||||
kpiUserSpecials: KpiUserSpecial[];
|
||||
}
|
||||
|
||||
export class createKpiUserEvaluation {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue