เพิ่มlink relation
This commit is contained in:
parent
a41e33c0d4
commit
d74c3140fa
16 changed files with 416 additions and 139 deletions
|
|
@ -2,6 +2,9 @@ import { Entity, Column, ManyToOne, JoinColumn, OneToOne, OneToMany } from "type
|
|||
import { EntityBase } from "./base/Base";
|
||||
import { OrgChild1 } from "./OrgChild1";
|
||||
import { OrgRevision } from "./OrgRevision";
|
||||
import { OrgChild2 } from "./OrgChild2";
|
||||
import { OrgChild3 } from "./OrgChild3";
|
||||
import { OrgChild4 } from "./OrgChild4";
|
||||
|
||||
// ENUM orgRootRank
|
||||
enum OrgRootRank {
|
||||
|
|
@ -91,6 +94,15 @@ export class OrgRoot extends EntityBase {
|
|||
|
||||
@OneToMany(() => OrgChild1, (orgChild1) => orgChild1.orgRoot)
|
||||
orgChild1s: OrgChild1[];
|
||||
|
||||
@OneToMany(() => OrgChild2, (orgChild2) => orgChild2.orgChild1)
|
||||
orgChild2s: OrgChild2[];
|
||||
|
||||
@OneToMany(() => OrgChild3, (orgChild3) => orgChild3.orgChild1)
|
||||
orgChild3s: OrgChild3[];
|
||||
|
||||
@OneToMany(() => OrgChild4, (orgChild4) => orgChild4.orgChild1)
|
||||
orgChild4s: OrgChild4[];
|
||||
}
|
||||
|
||||
export class CreateOrgRoot {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue