เพิ่มฟิว entity
This commit is contained in:
parent
29660a43ae
commit
784ec51ac1
5 changed files with 106 additions and 6 deletions
|
|
@ -40,6 +40,36 @@ export class KpiCapacity extends EntityBase {
|
|||
})
|
||||
description: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ระดับที่คาดหวัง",
|
||||
default: null,
|
||||
})
|
||||
level: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "น้ำหนัก",
|
||||
default: null,
|
||||
})
|
||||
weight: number;
|
||||
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ระดับคะแนน",
|
||||
default: null,
|
||||
})
|
||||
point: number;
|
||||
|
||||
@Column({
|
||||
type: "double",
|
||||
nullable: true,
|
||||
default: null,
|
||||
comment: "ผลการประเมิน"
|
||||
})
|
||||
summary: number;
|
||||
|
||||
@OneToMany(() => KpiCapacityDetail, (kpiCapacityDetail) => kpiCapacityDetail.kpiCapacity)
|
||||
kpiCapacityDetails: KpiCapacityDetail[];
|
||||
|
||||
|
|
|
|||
|
|
@ -63,6 +63,21 @@ export class KpiUserPlanned extends EntityBase {
|
|||
@ManyToOne(() => KpiPlan, (kpiPlan) => kpiPlan.kpiUserPlanneds)
|
||||
@JoinColumn({ name: "kpiPlanId" })
|
||||
kpiPlan: KpiPlan;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ระดับคะแนน",
|
||||
default: null,
|
||||
})
|
||||
point: number;
|
||||
|
||||
@Column({
|
||||
type: "double",
|
||||
nullable: true,
|
||||
default: null,
|
||||
comment: "ผลการประเมิน"
|
||||
})
|
||||
summary: number;
|
||||
}
|
||||
|
||||
export class CreateKpiUserPlanned {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { Entity, Column, ManyToOne, JoinColumn } from "typeorm";
|
|||
import { EntityBase } from "./base/Base";
|
||||
import { KpiUserEvaluation } from "./kpiUserEvaluation";
|
||||
import { KpiRole } from "./kpiRole";
|
||||
import { Double } from "typeorm/browser";
|
||||
|
||||
@Entity("kpiUserRole")
|
||||
export class KpiUserRole extends EntityBase {
|
||||
|
|
@ -63,6 +64,23 @@ export class KpiUserRole extends EntityBase {
|
|||
@ManyToOne(() => KpiRole, (kpiRole) => kpiRole.kpiUserRoles)
|
||||
@JoinColumn({ name: "kpiRoleId" })
|
||||
kpiRole: KpiRole;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ระดับคะแนน",
|
||||
default: null,
|
||||
})
|
||||
point: number;
|
||||
|
||||
|
||||
@Column({
|
||||
type: "double",
|
||||
nullable: true,
|
||||
default: null,
|
||||
comment: "ผลการประเมิน"
|
||||
})
|
||||
summary: number;
|
||||
|
||||
}
|
||||
|
||||
export class CreateKpiUserRole {
|
||||
|
|
@ -93,8 +111,8 @@ export class UpdateKpiUserRole {
|
|||
meaning: string;
|
||||
@Column()
|
||||
formula: string;
|
||||
// @Column("uuid")
|
||||
// kpiUserEvaluationId: string;
|
||||
// @Column("uuid")
|
||||
// kpiPlanId: string;
|
||||
@Column("uuid")
|
||||
kpiUserEvaluationId: string;
|
||||
@Column("uuid")
|
||||
kpiRoleId: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue