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

@ -84,16 +84,16 @@ export class OrgRoot extends EntityBase {
@Column({
nullable: true,
type: "tinyint",
comment: "สถานะของหน่วยงาน", //ปกติ = 1 , ยุกเลิก = 0
default: true
})
orgRootIsNormal: number;
orgRootIsNormal: boolean;
@Column({
length: 40,
default: "00000000-0000-0000-0000-000000000000",
})
fkOrgRevisionId: string;
orgRevisionId: string;
//child table 1,2,3,4
@OneToMany(() => OrgChild1, orgChild1 => orgChild1.orgRoot)
@ -111,3 +111,34 @@ export class OrgRoot extends EntityBase {
}
export type UpdateOrgRoot = Partial<OrgRoot>;
export class CreateOrgRoot {
@Column()
orgRootName: string;
@Column()
orgRootShortName: string;
@Column()
orgRootCode: string;
@Column()
orgRootRank: OrgRootRank;
@Column()
orgRootOrder: number;
@Column()
orgRootPhoneEx: string;
@Column()
orgRootPhoneIn: string;
@Column()
orgRootFax: string;
@Column()
orgRootIsNormal: boolean;
}