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

@ -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>;