checkpoint
This commit is contained in:
parent
42bd8cd77b
commit
5fbb2c5eea
4 changed files with 261 additions and 39 deletions
|
|
@ -100,20 +100,49 @@ export class OrgChild2 extends EntityBase {
|
|||
})
|
||||
orgChild1Id: string;
|
||||
|
||||
// @ManyToOne(() => OrgRoot, orgRoot => orgRoot.orgChild2s)
|
||||
// @JoinColumn({ name: "orgRootId" })
|
||||
// orgRoot: OrgRoot;
|
||||
|
||||
@ManyToOne(() => OrgChild1, orgChild1 => orgChild1.orgChild2s)
|
||||
@JoinColumn({ name: "orgChild1Id" })
|
||||
orgChild1: OrgChild1;
|
||||
|
||||
//child table 3,4
|
||||
@OneToMany(() => OrgChild3, orgChild3 => orgChild3.orgChild2)
|
||||
orgChild3s: OrgChild3[];
|
||||
|
||||
// @OneToMany(() => OrgChild4, orgChild4 => orgChild4.orgChild2)
|
||||
// orgChild4s: OrgChild4[];
|
||||
}
|
||||
|
||||
export class CreateOrgChild2 {
|
||||
|
||||
@Column()
|
||||
orgChild2Name: string;
|
||||
|
||||
@Column()
|
||||
orgChild2ShortName: string;
|
||||
|
||||
@Column()
|
||||
orgChild2Code: string;
|
||||
|
||||
@Column()
|
||||
orgChild2Rank: string;
|
||||
|
||||
@Column()
|
||||
orgChild2Order: number;
|
||||
|
||||
@Column()
|
||||
orgChild2PhoneEx: string;
|
||||
|
||||
@Column()
|
||||
orgChild2PhoneIn: string;
|
||||
|
||||
@Column()
|
||||
orgChild2Fax: string;
|
||||
|
||||
@Column()
|
||||
orgChild2IsNormal: boolean;
|
||||
|
||||
@Column('uuid')
|
||||
orgRootId: string;
|
||||
|
||||
@Column('uuid')
|
||||
orgChild1Id: string;
|
||||
|
||||
}
|
||||
export type UpdateOrgChild2 = Partial<OrgChild2>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue