แก้ defult value
This commit is contained in:
parent
9ac7517518
commit
c89126a8a2
16 changed files with 381 additions and 110 deletions
|
|
@ -7,7 +7,6 @@ import { OrgChild4 } from "./OrgChild4";
|
|||
import { OrgRevision } from "./OrgRevision";
|
||||
import { PosMaster } from "./PosMaster";
|
||||
|
||||
// ENUM orgChild2Rank
|
||||
enum OrgChild2Rank {
|
||||
DEPARTMENT = "DEPARTMENT",
|
||||
OFFICE = "OFFICE",
|
||||
|
|
@ -16,18 +15,11 @@ enum OrgChild2Rank {
|
|||
}
|
||||
@Entity("orgChild2")
|
||||
export class OrgChild2 extends EntityBase {
|
||||
// @Column({
|
||||
// comment: "",
|
||||
// length: 40,
|
||||
// default: "00000000-0000-0000-0000-000000000000",
|
||||
// })
|
||||
// orgChild2Id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อส่วนราชการ",
|
||||
length: 255,
|
||||
default: "string",
|
||||
default: null,
|
||||
})
|
||||
orgChild2Name: string;
|
||||
|
||||
|
|
@ -35,7 +27,7 @@ export class OrgChild2 extends EntityBase {
|
|||
nullable: true,
|
||||
comment: "ชื่อย่อส่วนราชการ",
|
||||
length: 16,
|
||||
default: "string",
|
||||
default: null,
|
||||
})
|
||||
orgChild2ShortName: string;
|
||||
|
||||
|
|
@ -43,7 +35,7 @@ export class OrgChild2 extends EntityBase {
|
|||
nullable: true,
|
||||
comment: "รหัสส่วนราชการ",
|
||||
length: 8,
|
||||
default: "string",
|
||||
default: null,
|
||||
})
|
||||
orgChild2Code: string;
|
||||
|
||||
|
|
@ -52,13 +44,14 @@ export class OrgChild2 extends EntityBase {
|
|||
comment: "ระดับส่วนราชการ",
|
||||
type: "enum",
|
||||
enum: OrgChild2Rank,
|
||||
// default: OrgChild2Rank.DEPARTMENT,
|
||||
default: null,
|
||||
})
|
||||
orgChild2Rank: OrgChild2Rank;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ลำดับที่ของส่วนราชการภายใน Child เดียวกัน",
|
||||
default: null,
|
||||
})
|
||||
orgChild2Order: number;
|
||||
|
||||
|
|
@ -66,6 +59,7 @@ export class OrgChild2 extends EntityBase {
|
|||
nullable: true,
|
||||
length: 64,
|
||||
comment: "หมายเลขโทรศัพท์ที่ติดต่อจากภายนอก",
|
||||
default: null,
|
||||
})
|
||||
orgChild2PhoneEx: string;
|
||||
|
||||
|
|
@ -73,6 +67,7 @@ export class OrgChild2 extends EntityBase {
|
|||
nullable: true,
|
||||
length: 64,
|
||||
comment: "หมายเลขโทรศัพท์ที่ติดต่อจากภายใน",
|
||||
default: null,
|
||||
})
|
||||
orgChild2PhoneIn: string;
|
||||
|
||||
|
|
@ -80,30 +75,29 @@ export class OrgChild2 extends EntityBase {
|
|||
nullable: true,
|
||||
length: 64,
|
||||
comment: "หมายเลขโทรสาร",
|
||||
default: null,
|
||||
})
|
||||
orgChild2Fax: string;
|
||||
|
||||
@Column({
|
||||
length: 40,
|
||||
default: "00000000-0000-0000-0000-000000000000",
|
||||
})
|
||||
orgRootId: string;
|
||||
|
||||
@Column({
|
||||
length: 40,
|
||||
default: "00000000-0000-0000-0000-000000000000",
|
||||
})
|
||||
orgChild1Id: 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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue