แก้ defult value

This commit is contained in:
Kittapath 2024-02-01 11:02:35 +07:00
parent 9ac7517518
commit c89126a8a2
16 changed files with 381 additions and 110 deletions

View file

@ -7,7 +7,6 @@ import { OrgChild3 } from "./OrgChild3";
import { OrgChild4 } from "./OrgChild4";
import { PosMaster } from "./PosMaster";
// ENUM orgRootRank
enum OrgRootRank {
DEPARTMENT = "DEPARTMENT",
OFFICE = "OFFICE",
@ -21,7 +20,7 @@ export class OrgRoot extends EntityBase {
nullable: true,
comment: "ชื่อหน่วยงาน",
length: 255,
default: "string",
default: null,
})
orgRootName: string;
@ -29,7 +28,7 @@ export class OrgRoot extends EntityBase {
nullable: true,
comment: "ชื่อย่อหน่วยงาน",
length: 16,
default: "string",
default: null,
})
orgRootShortName: string;
@ -37,7 +36,7 @@ export class OrgRoot extends EntityBase {
nullable: true,
comment: "รหัสหน่วยงาน",
length: 8,
default: "string",
default: null,
})
orgRootCode: string;
@ -46,13 +45,14 @@ export class OrgRoot extends EntityBase {
comment: "ระดับของหน่วยงาน",
type: "enum",
enum: OrgRootRank,
default: OrgRootRank.DEPARTMENT,
default: null,
})
orgRootRank: OrgRootRank;
@Column({
nullable: true,
comment: "ลำดับที่ของหน่วยงาน",
default: null,
})
orgRootOrder: number;
@ -60,6 +60,7 @@ export class OrgRoot extends EntityBase {
nullable: true,
length: 64,
comment: "หมายเลขโทรศัพท์ที่ติดต่อจากภายนอก",
default: null,
})
orgRootPhoneEx: string;
@ -67,6 +68,7 @@ export class OrgRoot extends EntityBase {
nullable: true,
length: 64,
comment: "หมายเลขโทรศัพท์ที่ติดต่อจากภายใน",
default: null,
})
orgRootPhoneIn: string;
@ -74,18 +76,19 @@ export class OrgRoot extends EntityBase {
nullable: true,
length: 64,
comment: "หมายเลขโทรสาร",
default: null,
})
orgRootFax: string;
@Column({
nullable: true,
length: 40,
default: "00000000-0000-0000-0000-000000000000",
default: null,
})
isAncestorDNA: string;
@Column({
length: 40,
default: "00000000-0000-0000-0000-000000000000",
})
orgRevisionId: string;