แก้ 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

@ -20,7 +20,7 @@ export class OrgChild1 extends EntityBase {
nullable: true,
comment: "ชื่อส่วนราชการ",
length: 255,
default: "string",
default: null,
})
orgChild1Name: string;
@ -28,7 +28,7 @@ export class OrgChild1 extends EntityBase {
nullable: true,
comment: "ชื่อย่อส่วนราชการ",
length: 16,
default: "string",
default: null,
})
orgChild1ShortName: string;
@ -36,7 +36,7 @@ export class OrgChild1 extends EntityBase {
nullable: true,
comment: "รหัสส่วนราชการ",
length: 8,
default: "string",
default: null,
})
orgChild1Code: string;
@ -45,12 +45,14 @@ export class OrgChild1 extends EntityBase {
comment: "ระดับส่วนราชการ",
type: "enum",
enum: OrgChild1Rank,
default: null,
})
orgChild1Rank: OrgChild1Rank;
@Column({
nullable: true,
comment: "ลำดับที่ของส่วนราชการภายใน Child เดียวกัน",
default: null,
})
orgChild1Order: number;
@ -58,6 +60,7 @@ export class OrgChild1 extends EntityBase {
nullable: true,
length: 64,
comment: "หมายเลขโทรศัพท์ที่ติดต่อจากภายนอก",
default: null,
})
orgChild1PhoneEx: string;
@ -65,6 +68,7 @@ export class OrgChild1 extends EntityBase {
nullable: true,
length: 64,
comment: "หมายเลขโทรศัพท์ที่ติดต่อจากภายใน",
default: null,
})
orgChild1PhoneIn: string;
@ -72,24 +76,24 @@ export class OrgChild1 extends EntityBase {
nullable: true,
length: 64,
comment: "หมายเลขโทรสาร",
default: null,
})
orgChild1Fax: string;
@Column({
length: 40,
default: "00000000-0000-0000-0000-000000000000",
})
orgRootId: string;
@Column({
length: 40,
default: "00000000-0000-0000-0000-000000000000",
})
orgRevisionId: string;
@Column({
nullable: true,
length: 40,
default: "00000000-0000-0000-0000-000000000000",
default: null,
})
isAncestorDNA: string;