edit orgChild1
This commit is contained in:
parent
414d695903
commit
320ad04e73
2 changed files with 57 additions and 21 deletions
|
|
@ -2,8 +2,6 @@ import { Entity, Column, ManyToOne, JoinColumn, OneToOne, OneToMany, PrimaryGene
|
|||
import { EntityBase } from "./base/Base";
|
||||
import { OrgRoot } from "./OrgRoot";
|
||||
import { OrgChild2 } from "./OrgChild2";
|
||||
import { OrgChild3 } from "./OrgChild3";
|
||||
import { OrgChild4 } from "./OrgChild4";
|
||||
|
||||
enum OrgChild1Rank {
|
||||
DEPARTMENT = "department",
|
||||
|
|
@ -11,6 +9,7 @@ enum OrgChild1Rank {
|
|||
DIVISION = "division",
|
||||
SECTION = "section",
|
||||
}
|
||||
|
||||
@Entity("orgChild1")
|
||||
export class OrgChild1 extends EntityBase {
|
||||
|
||||
|
|
@ -124,9 +123,9 @@ export class CreateOrgChild1 {
|
|||
@Column()
|
||||
orgChild1IsNormal: boolean;
|
||||
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
@Column('uuid')
|
||||
orgRootId: string;
|
||||
|
||||
}
|
||||
|
||||
export type UpdateOrgChild1 = Partial<OrgChild1>;
|
||||
export type UpdateOrgChild1 = Partial<CreateOrgChild1> & { orgChild1Rank?: OrgChild1Rank };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue