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({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgRoot",
|
||||||
})
|
})
|
||||||
orgRootId: string;
|
orgRootId: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgRevision",
|
||||||
})
|
})
|
||||||
orgRevisionId: string;
|
orgRevisionId: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "รหัส DNA ใช้ในกรณีที่มีการทำสำเนาโครงสร้าง โครงสร้างใหม่ที่ทำสำเนากับโครงสร้างเก่าจะต้องมี DNA เดียวกัน เพื่อให้ track ประวัติการแก้ไขโครงสร้างย้อนหลังได้",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
ancestorDNA: string;
|
ancestorDNA: string;
|
||||||
|
|
|
||||||
|
|
@ -81,22 +81,26 @@ export class OrgChild2 extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgRoot",
|
||||||
})
|
})
|
||||||
orgRootId: string;
|
orgRootId: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgChild1",
|
||||||
})
|
})
|
||||||
orgChild1Id: string;
|
orgChild1Id: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgRevision",
|
||||||
})
|
})
|
||||||
orgRevisionId: string;
|
orgRevisionId: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "รหัส DNA ใช้ในกรณีที่มีการทำสำเนาโครงสร้าง โครงสร้างใหม่ที่ทำสำเนากับโครงสร้างเก่าจะต้องมี DNA เดียวกัน เพื่อให้ track ประวัติการแก้ไขโครงสร้างย้อนหลังได้",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
ancestorDNA: string;
|
ancestorDNA: string;
|
||||||
|
|
|
||||||
|
|
@ -82,27 +82,32 @@ export class OrgChild3 extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgRoot",
|
||||||
})
|
})
|
||||||
orgRootId: string;
|
orgRootId: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgChild1",
|
||||||
})
|
})
|
||||||
orgChild1Id: string;
|
orgChild1Id: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgChild2",
|
||||||
})
|
})
|
||||||
orgChild2Id: string;
|
orgChild2Id: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgRevision",
|
||||||
})
|
})
|
||||||
orgRevisionId: string;
|
orgRevisionId: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "รหัส DNA ใช้ในกรณีที่มีการทำสำเนาโครงสร้าง โครงสร้างใหม่ที่ทำสำเนากับโครงสร้างเก่าจะต้องมี DNA เดียวกัน เพื่อให้ track ประวัติการแก้ไขโครงสร้างย้อนหลังได้",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
ancestorDNA: string;
|
ancestorDNA: string;
|
||||||
|
|
|
||||||
|
|
@ -81,32 +81,38 @@ export class OrgChild4 extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgRoot",
|
||||||
})
|
})
|
||||||
orgRootId: string;
|
orgRootId: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgChild1",
|
||||||
})
|
})
|
||||||
orgChild1Id: string;
|
orgChild1Id: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgChild2",
|
||||||
})
|
})
|
||||||
orgChild2Id: string;
|
orgChild2Id: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgChild3",
|
||||||
})
|
})
|
||||||
orgChild3Id: string;
|
orgChild3Id: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgRevision",
|
||||||
})
|
})
|
||||||
orgRevisionId: string;
|
orgRevisionId: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "รหัส DNA ใช้ในกรณีที่มีการทำสำเนาโครงสร้าง โครงสร้างใหม่ที่ทำสำเนากับโครงสร้างเก่าจะต้องมี DNA เดียวกัน เพื่อให้ track ประวัติการแก้ไขโครงสร้างย้อนหลังได้",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
ancestorDNA: string;
|
ancestorDNA: string;
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,14 @@ import { OrgChild4 } from "./OrgChild4";
|
||||||
@Entity("orgRevision")
|
@Entity("orgRevision")
|
||||||
export class OrgRevision extends EntityBase {
|
export class OrgRevision extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
comment: "",
|
comment: "ชื่อของโครงสร้าง",
|
||||||
length: 255,
|
length: 255,
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
orgRevisionName: string;
|
orgRevisionName: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
comment: "",
|
comment: "สถานะเป็นโครงสร้างปัจจุบันหรือไม่",
|
||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
orgRevisionIsCurrent: boolean;
|
orgRevisionIsCurrent: boolean;
|
||||||
|
|
@ -25,7 +25,7 @@ export class OrgRevision extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
comment: "",
|
comment: "วันเวลาที่สร้างโครงสร้าง",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
orgRevisionCreatedAt: Date;
|
orgRevisionCreatedAt: Date;
|
||||||
|
|
@ -39,7 +39,7 @@ export class OrgRevision extends EntityBase {
|
||||||
orgPublishDate: Date;
|
orgPublishDate: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
comment: "",
|
comment: "สถานะเป็นโครงสร้างแบบร่างหรือไม่",
|
||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
orgRevisionIsDraft: boolean;
|
orgRevisionIsDraft: boolean;
|
||||||
|
|
|
||||||
|
|
@ -83,12 +83,14 @@ export class OrgRoot extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "รหัส DNA ใช้ในกรณีที่มีการทำสำเนาโครงสร้าง โครงสร้างใหม่ที่ทำสำเนากับโครงสร้างเก่าจะต้องมี DNA เดียวกัน เพื่อให้ track ประวัติการแก้ไขโครงสร้างย้อนหลังได้",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
ancestorDNA: string;
|
ancestorDNA: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgRevision",
|
||||||
})
|
})
|
||||||
orgRevisionId: string;
|
orgRevisionId: string;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@ export class PosMaster extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgRoot",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
orgRootId?: string;
|
orgRootId?: string;
|
||||||
|
|
@ -89,6 +90,7 @@ export class PosMaster extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgChild1",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
orgChild1Id?: string;
|
orgChild1Id?: string;
|
||||||
|
|
@ -96,6 +98,7 @@ export class PosMaster extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgChild2",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
orgChild2Id?: string;
|
orgChild2Id?: string;
|
||||||
|
|
@ -103,6 +106,7 @@ export class PosMaster extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgChild3",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
orgChild3Id?: string;
|
orgChild3Id?: string;
|
||||||
|
|
@ -110,6 +114,7 @@ export class PosMaster extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgChild4",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
orgChild4Id?: string;
|
orgChild4Id?: string;
|
||||||
|
|
@ -134,6 +139,7 @@ export class PosMaster extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
length: 40,
|
length: 40,
|
||||||
|
comment: "คีย์นอก(FK)ของตาราง orgRevision",
|
||||||
})
|
})
|
||||||
orgRevisionId: string; //fk
|
orgRevisionId: string; //fk
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue