checkpoint

This commit is contained in:
AdisakKanthawilang 2024-01-25 10:13:36 +07:00
parent ba60192ec1
commit d737ecdf11
11 changed files with 452 additions and 49 deletions

View file

@ -82,49 +82,49 @@ export class OrgChild4 extends EntityBase {
@Column({
nullable: true,
type: "tinyint",
comment: "สถานะของหน่วยงาน", //ปกติ = 1 , ยุกเลิก = 0
default: true
})
orgChild4IsNormal: number;
orgChild4IsNormal: boolean;
@Column({
length: 40,
default: "00000000-0000-0000-0000-000000000000",
})
fkOrgRootId: string;
orgRootId: string;
@Column({
length: 40,
default: "00000000-0000-0000-0000-000000000000",
})
fkOrgChild1Id: string;
orgChild1Id: string;
@Column({
length: 40,
default: "00000000-0000-0000-0000-000000000000",
})
fkOrgChild2Id: string;
orgChild2Id: string;
@Column({
length: 40,
default: "00000000-0000-0000-0000-000000000000",
})
fkOrgChild3Id: string;
orgChild3Id: string;
// @ManyToOne(() => OrgRoot, orgRoot => orgRoot.orgChild4s)
// @JoinColumn({ name: "fkOrgRootId" })
// @JoinColumn({ name: "orgRootId" })
// orgRoot: OrgRoot;
// @ManyToOne(() => OrgChild1, orgChild1 => orgChild1.orgChild4s)
// @JoinColumn({ name: "fkOrgChild1Id" })
// @JoinColumn({ name: "orgChild1Id" })
// orgChild1: OrgChild1;
// @ManyToOne(() => OrgChild2, orgChild2 => orgChild2.orgChild4s)
// @JoinColumn({ name: "fkOrgChild2Id" })
// @JoinColumn({ name: "orgChild2Id" })
// orgChild2: OrgChild2;
@ManyToOne(() => OrgChild3, orgChild3 => orgChild3.orgChild4s)
@JoinColumn({ name: "fkOrgChild3Id" })
@JoinColumn({ name: "orgChild3Id" })
orgChild3: OrgChild3;
}
export type UpdateOrgChild4 = Partial<OrgChild4>;