no message
This commit is contained in:
parent
65e1d682b1
commit
42264be4a2
16 changed files with 55 additions and 201 deletions
31
src/entities/kpiUserCapacity.ts
Normal file
31
src/entities/kpiUserCapacity.ts
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { Entity, Column, OneToMany, ManyToOne, JoinColumn } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { KpiCapacity } from "./kpiCapacity";
|
||||
import { KpiUserEvaluation } from "./kpiUserEvaluation";
|
||||
|
||||
@Entity("kpiUserCapacity")
|
||||
export class KpiUserCapacity extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง kpiUserEvaluation",
|
||||
default: null,
|
||||
})
|
||||
kpiUserEvaluationId: string;
|
||||
|
||||
@ManyToOne(() => KpiUserEvaluation, (kpiUserEvaluation) => kpiUserEvaluation.kpiUserCapacitys)
|
||||
@JoinColumn({ name: "kpiUserEvaluationId" })
|
||||
kpiUserEvaluation: KpiUserEvaluation;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง kpiCapacity",
|
||||
default: null,
|
||||
})
|
||||
kpiCapacityId: string;
|
||||
|
||||
@ManyToOne(() => KpiCapacity, (kpiCapacity) => kpiCapacity.kpiUserCapacitys)
|
||||
@JoinColumn({ name: "kpiCapacityId" })
|
||||
kpiCapacity: KpiCapacity;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue