แก้ defult value
This commit is contained in:
parent
9ac7517518
commit
c89126a8a2
16 changed files with 381 additions and 110 deletions
|
|
@ -6,7 +6,7 @@ import { OrgChild2 } from "./OrgChild2";
|
|||
import { OrgChild3 } from "./OrgChild3";
|
||||
import { OrgRevision } from "./OrgRevision";
|
||||
import { PosMaster } from "./PosMaster";
|
||||
// ENUM orgChild4Rank
|
||||
|
||||
enum OrgChild4Rank {
|
||||
DEPARTMENT = "DEPARTMENT",
|
||||
OFFICE = "OFFICE",
|
||||
|
|
@ -15,18 +15,11 @@ enum OrgChild4Rank {
|
|||
}
|
||||
@Entity("orgChild4")
|
||||
export class OrgChild4 extends EntityBase {
|
||||
// @Column({
|
||||
// comment: "",
|
||||
// length: 40,
|
||||
// default: "00000000-0000-0000-0000-000000000000",
|
||||
// })
|
||||
// orgChild4Id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อส่วนราชการ",
|
||||
length: 255,
|
||||
default: "string",
|
||||
default: null,
|
||||
})
|
||||
orgChild4Name: string;
|
||||
|
||||
|
|
@ -34,7 +27,7 @@ export class OrgChild4 extends EntityBase {
|
|||
nullable: true,
|
||||
comment: "ชื่อย่อส่วนราชการ",
|
||||
length: 16,
|
||||
default: "string",
|
||||
default: null,
|
||||
})
|
||||
orgChild4ShortName: string;
|
||||
|
||||
|
|
@ -42,7 +35,7 @@ export class OrgChild4 extends EntityBase {
|
|||
nullable: true,
|
||||
comment: "รหัสส่วนราชการ",
|
||||
length: 8,
|
||||
default: "string",
|
||||
default: null,
|
||||
})
|
||||
orgChild4Code: string;
|
||||
|
||||
|
|
@ -51,13 +44,14 @@ export class OrgChild4 extends EntityBase {
|
|||
comment: "ระดับส่วนราชการ",
|
||||
type: "enum",
|
||||
enum: OrgChild4Rank,
|
||||
// default: OrgChild4Rank.DEPARTMENT,
|
||||
default: null,
|
||||
})
|
||||
orgChild4Rank: OrgChild4Rank;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ลำดับที่ของส่วนราชการภายใน Child เดียวกัน",
|
||||
default: null,
|
||||
})
|
||||
orgChild4Order: number;
|
||||
|
||||
|
|
@ -65,6 +59,7 @@ export class OrgChild4 extends EntityBase {
|
|||
nullable: true,
|
||||
length: 64,
|
||||
comment: "หมายเลขโทรศัพท์ที่ติดต่อจากภายนอก",
|
||||
default: null,
|
||||
})
|
||||
orgChild4PhoneEx: string;
|
||||
|
||||
|
|
@ -72,6 +67,7 @@ export class OrgChild4 extends EntityBase {
|
|||
nullable: true,
|
||||
length: 64,
|
||||
comment: "หมายเลขโทรศัพท์ที่ติดต่อจากภายใน",
|
||||
default: null,
|
||||
})
|
||||
orgChild4PhoneIn: string;
|
||||
|
||||
|
|
@ -79,42 +75,39 @@ export class OrgChild4 extends EntityBase {
|
|||
nullable: true,
|
||||
length: 64,
|
||||
comment: "หมายเลขโทรสาร",
|
||||
default: null,
|
||||
})
|
||||
orgChild4Fax: 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",
|
||||
})
|
||||
orgChild2Id: string;
|
||||
|
||||
@Column({
|
||||
length: 40,
|
||||
default: "00000000-0000-0000-0000-000000000000",
|
||||
})
|
||||
orgChild3Id: 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;
|
||||
|
||||
|
|
@ -139,7 +132,7 @@ export class OrgChild4 extends EntityBase {
|
|||
orgChild3: OrgChild3;
|
||||
|
||||
@OneToMany(() => PosMaster, (posMaster) => posMaster.orgChild4)
|
||||
posMasters: PosMaster[]
|
||||
posMasters: PosMaster[];
|
||||
}
|
||||
|
||||
export class CreateOrgChild4 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue