tabel OrgGroup

This commit is contained in:
AdisakKanthawilang 2024-01-24 17:22:41 +07:00
parent 688e94e26a
commit 0069c3f491
7 changed files with 71 additions and 37 deletions

View file

@ -11,7 +11,7 @@ enum OrgChild3Rank {
DIVISION = "division",
SECTION = "section",
}
@Entity("orgChild3")
export class OrgChild3 extends EntityBase {
// @Column({
// comment: "",
@ -105,13 +105,13 @@ export class OrgChild3 extends EntityBase {
})
fkOrgChild2Id: string;
@ManyToOne(() => OrgRoot, orgRoot => orgRoot.orgChild3s)
@JoinColumn({ name: "fkOrgRootId" })
orgRoot: OrgRoot;
// @ManyToOne(() => OrgRoot, orgRoot => orgRoot.orgChild3s)
// @JoinColumn({ name: "fkOrgRootId" })
// orgRoot: OrgRoot;
@ManyToOne(() => OrgChild1, orgChild1 => orgChild1.orgChild3s)
@JoinColumn({ name: "fkOrgChild1Id" })
orgChild1: OrgChild1;
// @ManyToOne(() => OrgChild1, orgChild1 => orgChild1.orgChild3s)
// @JoinColumn({ name: "fkOrgChild1Id" })
// orgChild1: OrgChild1;
@ManyToOne(() => OrgChild2, orgChild2 => orgChild2.orgChild3s)
@JoinColumn({ name: "fkOrgChild2Id" })