diff --git a/src/entities/OrgChild1.ts b/src/entities/OrgChild1.ts index c9414890..a91c8344 100644 --- a/src/entities/OrgChild1.ts +++ b/src/entities/OrgChild1.ts @@ -82,17 +82,20 @@ export class OrgChild1 extends EntityBase { @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgRoot", }) orgRootId: string; @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgRevision", }) orgRevisionId: string; @Column({ nullable: true, length: 40, + comment: "รหัส DNA ใช้ในกรณีที่มีการทำสำเนาโครงสร้าง โครงสร้างใหม่ที่ทำสำเนากับโครงสร้างเก่าจะต้องมี DNA เดียวกัน เพื่อให้ track ประวัติการแก้ไขโครงสร้างย้อนหลังได้", default: null, }) ancestorDNA: string; diff --git a/src/entities/OrgChild2.ts b/src/entities/OrgChild2.ts index 177f6425..55315a9a 100644 --- a/src/entities/OrgChild2.ts +++ b/src/entities/OrgChild2.ts @@ -81,22 +81,26 @@ export class OrgChild2 extends EntityBase { @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgRoot", }) orgRootId: string; @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgChild1", }) orgChild1Id: string; @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgRevision", }) orgRevisionId: string; @Column({ nullable: true, length: 40, + comment: "รหัส DNA ใช้ในกรณีที่มีการทำสำเนาโครงสร้าง โครงสร้างใหม่ที่ทำสำเนากับโครงสร้างเก่าจะต้องมี DNA เดียวกัน เพื่อให้ track ประวัติการแก้ไขโครงสร้างย้อนหลังได้", default: null, }) ancestorDNA: string; diff --git a/src/entities/OrgChild3.ts b/src/entities/OrgChild3.ts index 850a6a3a..fbfad816 100644 --- a/src/entities/OrgChild3.ts +++ b/src/entities/OrgChild3.ts @@ -82,27 +82,32 @@ export class OrgChild3 extends EntityBase { @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgRoot", }) orgRootId: string; @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgChild1", }) orgChild1Id: string; @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgChild2", }) orgChild2Id: string; @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgRevision", }) orgRevisionId: string; @Column({ nullable: true, length: 40, + comment: "รหัส DNA ใช้ในกรณีที่มีการทำสำเนาโครงสร้าง โครงสร้างใหม่ที่ทำสำเนากับโครงสร้างเก่าจะต้องมี DNA เดียวกัน เพื่อให้ track ประวัติการแก้ไขโครงสร้างย้อนหลังได้", default: null, }) ancestorDNA: string; diff --git a/src/entities/OrgChild4.ts b/src/entities/OrgChild4.ts index 641dc0c3..a5260567 100644 --- a/src/entities/OrgChild4.ts +++ b/src/entities/OrgChild4.ts @@ -81,32 +81,38 @@ export class OrgChild4 extends EntityBase { @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgRoot", }) orgRootId: string; @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgChild1", }) orgChild1Id: string; @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgChild2", }) orgChild2Id: string; @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgChild3", }) orgChild3Id: string; @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgRevision", }) orgRevisionId: string; @Column({ nullable: true, length: 40, + comment: "รหัส DNA ใช้ในกรณีที่มีการทำสำเนาโครงสร้าง โครงสร้างใหม่ที่ทำสำเนากับโครงสร้างเก่าจะต้องมี DNA เดียวกัน เพื่อให้ track ประวัติการแก้ไขโครงสร้างย้อนหลังได้", default: null, }) ancestorDNA: string; diff --git a/src/entities/OrgRevision.ts b/src/entities/OrgRevision.ts index 36d502a2..4fa02f3c 100644 --- a/src/entities/OrgRevision.ts +++ b/src/entities/OrgRevision.ts @@ -10,14 +10,14 @@ import { OrgChild4 } from "./OrgChild4"; @Entity("orgRevision") export class OrgRevision extends EntityBase { @Column({ - comment: "", + comment: "ชื่อของโครงสร้าง", length: 255, default: null, }) orgRevisionName: string; @Column({ - comment: "", + comment: "สถานะเป็นโครงสร้างปัจจุบันหรือไม่", default: false, }) orgRevisionIsCurrent: boolean; @@ -25,7 +25,7 @@ export class OrgRevision extends EntityBase { @Column({ nullable: true, type: "datetime", - comment: "", + comment: "วันเวลาที่สร้างโครงสร้าง", default: null, }) orgRevisionCreatedAt: Date; @@ -39,7 +39,7 @@ export class OrgRevision extends EntityBase { orgPublishDate: Date; @Column({ - comment: "", + comment: "สถานะเป็นโครงสร้างแบบร่างหรือไม่", default: false, }) orgRevisionIsDraft: boolean; diff --git a/src/entities/OrgRoot.ts b/src/entities/OrgRoot.ts index 437d6fa7..16f52cee 100644 --- a/src/entities/OrgRoot.ts +++ b/src/entities/OrgRoot.ts @@ -83,12 +83,14 @@ export class OrgRoot extends EntityBase { @Column({ nullable: true, length: 40, + comment: "รหัส DNA ใช้ในกรณีที่มีการทำสำเนาโครงสร้าง โครงสร้างใหม่ที่ทำสำเนากับโครงสร้างเก่าจะต้องมี DNA เดียวกัน เพื่อให้ track ประวัติการแก้ไขโครงสร้างย้อนหลังได้", default: null, }) ancestorDNA: string; @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgRevision", }) orgRevisionId: string; diff --git a/src/entities/PosMaster.ts b/src/entities/PosMaster.ts index c0f85d66..09eca9bc 100644 --- a/src/entities/PosMaster.ts +++ b/src/entities/PosMaster.ts @@ -82,6 +82,7 @@ export class PosMaster extends EntityBase { @Column({ nullable: true, length: 40, + comment: "คีย์นอก(FK)ของตาราง orgRoot", default: null, }) orgRootId?: string; @@ -89,6 +90,7 @@ export class PosMaster extends EntityBase { @Column({ nullable: true, length: 40, + comment: "คีย์นอก(FK)ของตาราง orgChild1", default: null, }) orgChild1Id?: string; @@ -96,6 +98,7 @@ export class PosMaster extends EntityBase { @Column({ nullable: true, length: 40, + comment: "คีย์นอก(FK)ของตาราง orgChild2", default: null, }) orgChild2Id?: string; @@ -103,6 +106,7 @@ export class PosMaster extends EntityBase { @Column({ nullable: true, length: 40, + comment: "คีย์นอก(FK)ของตาราง orgChild3", default: null, }) orgChild3Id?: string; @@ -110,6 +114,7 @@ export class PosMaster extends EntityBase { @Column({ nullable: true, length: 40, + comment: "คีย์นอก(FK)ของตาราง orgChild4", default: null, }) orgChild4Id?: string; @@ -134,6 +139,7 @@ export class PosMaster extends EntityBase { @Column({ length: 40, + comment: "คีย์นอก(FK)ของตาราง orgRevision", }) orgRevisionId: string; //fk