migrate db

This commit is contained in:
Kittapath 2024-04-23 11:15:53 +07:00
parent 784ec51ac1
commit 44f669b5b1
3 changed files with 61 additions and 30 deletions

View file

@ -40,36 +40,6 @@ 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[];

View file

@ -5,6 +5,35 @@ import { KpiUserEvaluation } from "./kpiUserEvaluation";
@Entity("kpiUserCapacity")
export class KpiUserCapacity extends EntityBase {
@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;
@Column({
nullable: true,
length: 40,