tabel OrgGroup
This commit is contained in:
parent
688e94e26a
commit
0069c3f491
7 changed files with 71 additions and 37 deletions
|
|
@ -12,7 +12,7 @@ enum OrgChild1Rank {
|
|||
DIVISION = "division",
|
||||
SECTION = "section",
|
||||
}
|
||||
|
||||
@Entity("orgChild1")
|
||||
export class OrgChild1 extends EntityBase {
|
||||
// @Column({
|
||||
// comment: "",
|
||||
|
|
@ -102,11 +102,11 @@ export class OrgChild1 extends EntityBase {
|
|||
@OneToMany(() => OrgChild2, orgChild2 => orgChild2.orgChild1)
|
||||
orgChild2s: OrgChild2[];
|
||||
|
||||
@OneToMany(() => OrgChild3, orgChild3 => orgChild3.orgChild1)
|
||||
orgChild3s: OrgChild3[];
|
||||
// @OneToMany(() => OrgChild3, orgChild3 => orgChild3.orgChild1)
|
||||
// orgChild3s: OrgChild3[];
|
||||
|
||||
@OneToMany(() => OrgChild4, orgChild4 => orgChild4.orgChild1)
|
||||
orgChild4s: OrgChild4[];
|
||||
// @OneToMany(() => OrgChild4, orgChild4 => orgChild4.orgChild1)
|
||||
// orgChild4s: OrgChild4[];
|
||||
|
||||
}
|
||||
export type UpdateOrgChild1 = Partial<OrgChild1>;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ enum OrgChild2Rank {
|
|||
DIVISION = "division",
|
||||
SECTION = "section",
|
||||
}
|
||||
|
||||
@Entity("orgChild2")
|
||||
export class OrgChild2 extends EntityBase {
|
||||
// @Column({
|
||||
// comment: "",
|
||||
|
|
@ -100,9 +100,9 @@ export class OrgChild2 extends EntityBase {
|
|||
})
|
||||
fkOrgChild1Id: string;
|
||||
|
||||
@ManyToOne(() => OrgRoot, orgRoot => orgRoot.orgChild2s)
|
||||
@JoinColumn({ name: "fkOrgRootId" })
|
||||
orgRoot: OrgRoot;
|
||||
// @ManyToOne(() => OrgRoot, orgRoot => orgRoot.orgChild2s)
|
||||
// @JoinColumn({ name: "fkOrgRootId" })
|
||||
// orgRoot: OrgRoot;
|
||||
|
||||
@ManyToOne(() => OrgChild1, orgChild1 => orgChild1.orgChild2s)
|
||||
@JoinColumn({ name: "fkOrgChild1Id" })
|
||||
|
|
@ -112,8 +112,8 @@ export class OrgChild2 extends EntityBase {
|
|||
@OneToMany(() => OrgChild3, orgChild3 => orgChild3.orgChild2)
|
||||
orgChild3s: OrgChild3[];
|
||||
|
||||
@OneToMany(() => OrgChild4, orgChild4 => orgChild4.orgChild2)
|
||||
orgChild4s: OrgChild4[];
|
||||
// @OneToMany(() => OrgChild4, orgChild4 => orgChild4.orgChild2)
|
||||
// orgChild4s: OrgChild4[];
|
||||
|
||||
}
|
||||
export type UpdateOrgChild2 = Partial<OrgChild2>;
|
||||
|
|
|
|||
|
|
@ -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" })
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ enum OrgChild4Rank {
|
|||
DIVISION = "division",
|
||||
SECTION = "section",
|
||||
}
|
||||
|
||||
@Entity("orgChild4")
|
||||
export class OrgChild4 extends EntityBase {
|
||||
// @Column({
|
||||
// comment: "",
|
||||
|
|
@ -111,17 +111,17 @@ export class OrgChild4 extends EntityBase {
|
|||
})
|
||||
fkOrgChild3Id: string;
|
||||
|
||||
@ManyToOne(() => OrgRoot, orgRoot => orgRoot.orgChild4s)
|
||||
@JoinColumn({ name: "fkOrgRootId" })
|
||||
orgRoot: OrgRoot;
|
||||
// @ManyToOne(() => OrgRoot, orgRoot => orgRoot.orgChild4s)
|
||||
// @JoinColumn({ name: "fkOrgRootId" })
|
||||
// orgRoot: OrgRoot;
|
||||
|
||||
@ManyToOne(() => OrgChild1, orgChild1 => orgChild1.orgChild4s)
|
||||
@JoinColumn({ name: "fkOrgChild1Id" })
|
||||
orgChild1: OrgChild1;
|
||||
// @ManyToOne(() => OrgChild1, orgChild1 => orgChild1.orgChild4s)
|
||||
// @JoinColumn({ name: "fkOrgChild1Id" })
|
||||
// orgChild1: OrgChild1;
|
||||
|
||||
@ManyToOne(() => OrgChild2, orgChild2 => orgChild2.orgChild4s)
|
||||
@JoinColumn({ name: "fkOrgChild2Id" })
|
||||
orgChild2: OrgChild2;
|
||||
// @ManyToOne(() => OrgChild2, orgChild2 => orgChild2.orgChild4s)
|
||||
// @JoinColumn({ name: "fkOrgChild2Id" })
|
||||
// orgChild2: OrgChild2;
|
||||
|
||||
@ManyToOne(() => OrgChild3, orgChild3 => orgChild3.orgChild4s)
|
||||
@JoinColumn({ name: "fkOrgChild3Id" })
|
||||
|
|
|
|||
|
|
@ -99,14 +99,14 @@ export class OrgRoot extends EntityBase {
|
|||
@OneToMany(() => OrgChild1, orgChild1 => orgChild1.orgRoot)
|
||||
orgChild1s: OrgChild1[];
|
||||
|
||||
@OneToMany(() => OrgChild2, orgChild2 => orgChild2.orgRoot)
|
||||
orgChild2s: OrgChild2[];
|
||||
// @OneToMany(() => OrgChild2, orgChild2 => orgChild2.orgRoot)
|
||||
// orgChild2s: OrgChild2[];
|
||||
|
||||
@OneToMany(() => OrgChild3, orgChild3 => orgChild3.orgRoot)
|
||||
orgChild3s: OrgChild3[];
|
||||
// @OneToMany(() => OrgChild3, orgChild3 => orgChild3.orgRoot)
|
||||
// orgChild3s: OrgChild3[];
|
||||
|
||||
@OneToMany(() => OrgChild4, orgChild4 => orgChild4.orgRoot)
|
||||
orgChild4s: OrgChild4[];
|
||||
// @OneToMany(() => OrgChild4, orgChild4 => orgChild4.orgRoot)
|
||||
// orgChild4s: OrgChild4[];
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue