migrate db
This commit is contained in:
parent
784ec51ac1
commit
44f669b5b1
3 changed files with 61 additions and 30 deletions
|
|
@ -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[];
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue