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,39 +82,39 @@ export class OrgChild3 extends EntityBase {
@Column({
nullable: true,
type: "tinyint",
comment: "สถานะของหน่วยงาน", //ปกติ = 1 , ยุกเลิก = 0
default: true
})
orgChild3IsNormal: number;
orgChild3IsNormal: 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;
// @ManyToOne(() => OrgRoot, orgRoot => orgRoot.orgChild3s)
// @JoinColumn({ name: "fkOrgRootId" })
// @JoinColumn({ name: "orgRootId" })
// orgRoot: OrgRoot;
// @ManyToOne(() => OrgChild1, orgChild1 => orgChild1.orgChild3s)
// @JoinColumn({ name: "fkOrgChild1Id" })
// @JoinColumn({ name: "orgChild1Id" })
// orgChild1: OrgChild1;
@ManyToOne(() => OrgChild2, orgChild2 => orgChild2.orgChild3s)
@JoinColumn({ name: "fkOrgChild2Id" })
@JoinColumn({ name: "orgChild2Id" })
orgChild2: OrgChild2;
//child table 4