สร้างโครงสร้าง
This commit is contained in:
parent
042422938c
commit
8184152ac0
16 changed files with 295 additions and 84 deletions
|
|
@ -74,11 +74,10 @@ export class OrgRoot extends EntityBase {
|
|||
orgRootFax: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "สถานะของหน่วยงาน", //ปกติ = 1 , ยุกเลิก = 0
|
||||
default: false,
|
||||
length: 40,
|
||||
default: "00000000-0000-0000-0000-000000000000",
|
||||
})
|
||||
orgRootIsNormal: boolean;
|
||||
isAncestorDNA: string;
|
||||
|
||||
@Column({
|
||||
length: 40,
|
||||
|
|
@ -86,22 +85,14 @@ export class OrgRoot extends EntityBase {
|
|||
})
|
||||
orgRevisionId: string;
|
||||
|
||||
@Column({
|
||||
length: 40,
|
||||
default: "00000000-0000-0000-0000-000000000000",
|
||||
})
|
||||
isAncestorDNA: string;
|
||||
|
||||
@ManyToOne(() => OrgRevision, orgRevision => orgRevision.orgRoots)
|
||||
@ManyToOne(() => OrgRevision, (orgRevision) => orgRevision.orgRoots)
|
||||
@JoinColumn({ name: "orgRevisionId" })
|
||||
orgRevision: OrgRevision;
|
||||
|
||||
|
||||
@OneToMany(() => OrgChild1, (orgChild1) => orgChild1.orgRoot)
|
||||
orgChild1s: OrgChild1[];
|
||||
|
||||
}
|
||||
|
||||
|
||||
export class CreateOrgRoot {
|
||||
@Column()
|
||||
orgRootName: string;
|
||||
|
|
@ -123,11 +114,9 @@ export class CreateOrgRoot {
|
|||
|
||||
@Column()
|
||||
orgRootFax?: string;
|
||||
|
||||
@Column('uuid')
|
||||
|
||||
@Column("uuid")
|
||||
orgRevisionId: string;
|
||||
|
||||
|
||||
}
|
||||
|
||||
export type UpdateOrgRoot = Partial<CreateOrgRoot> & { orgRootRank?: OrgRootRank };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue