er ฝั่ง user
This commit is contained in:
parent
27da57f35e
commit
fae8d38013
16 changed files with 870 additions and 72 deletions
31
src/entities/kpiUserGroup.ts
Normal file
31
src/entities/kpiUserGroup.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("kpiUserGroup")
|
||||
export class KpiUserGroup extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง kpiUserEvaluation",
|
||||
default: null,
|
||||
})
|
||||
kpiUserEvaluationId: string;
|
||||
|
||||
@ManyToOne(() => KpiUserEvaluation, (kpiUserEvaluation) => kpiUserEvaluation.kpiUserGroups)
|
||||
@JoinColumn({ name: "kpiUserEvaluationId" })
|
||||
kpiUserEvaluations: KpiUserEvaluation;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง kpiCapacity",
|
||||
default: null,
|
||||
})
|
||||
kpiCapacityId: string;
|
||||
|
||||
@ManyToOne(() => KpiCapacity, (kpiCapacity) => kpiCapacity.kpiUserGroups)
|
||||
@JoinColumn({ name: "kpiCapacityId" })
|
||||
kpiCapacitys: KpiCapacity;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue