er ฝั่ง user
This commit is contained in:
parent
27da57f35e
commit
fae8d38013
16 changed files with 870 additions and 72 deletions
66
src/entities/kpiUserSpecial.ts
Normal file
66
src/entities/kpiUserSpecial.ts
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
import { Entity, Column, ManyToOne, JoinColumn } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { KpiUserEvaluation } from "./kpiUserEvaluation";
|
||||
import { KpiSpecial } from "./kpiSpecial";
|
||||
|
||||
@Entity("kpiUserSpecial")
|
||||
export class KpiUserSpecial extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ค่าเป้าหมาย",
|
||||
default: null,
|
||||
})
|
||||
target: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "หน่วยนับ",
|
||||
default: null,
|
||||
})
|
||||
unit: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "น้ำหนัก",
|
||||
default: null,
|
||||
})
|
||||
weight: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "นิยามหรือความหมาย",
|
||||
default: null,
|
||||
})
|
||||
meaning: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "สูตรคำนวณ",
|
||||
default: null,
|
||||
})
|
||||
formula: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง kpiUserEvaluation",
|
||||
default: null,
|
||||
})
|
||||
kpiUserEvaluationId: string;
|
||||
|
||||
@ManyToOne(() => KpiUserEvaluation, (kpiUserEvaluation) => kpiUserEvaluation.kpiUserSpecials)
|
||||
@JoinColumn({ name: "kpiUserEvaluationId" })
|
||||
kpiUserEvaluations: KpiUserEvaluation;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง kpiSpecial",
|
||||
default: null,
|
||||
})
|
||||
kpiSpecialId: string;
|
||||
|
||||
@ManyToOne(() => KpiSpecial, (kpiSpecial) => kpiSpecial.kpiUserSpecials)
|
||||
@JoinColumn({ name: "kpiSpecialId" })
|
||||
kpiSpecials: KpiSpecial;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue