add comment entity
This commit is contained in:
parent
a92f7eca09
commit
38f44d8f36
7 changed files with 30 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue