This commit is contained in:
AdisakKanthawilang 2024-05-14 14:37:23 +07:00
parent e1db0a0a73
commit 596b7f0b97
5 changed files with 48 additions and 1 deletions

View file

@ -108,6 +108,15 @@ export class OrgChild1 extends EntityBase {
})
ancestorDNA: string;
@Column({
nullable: true,
length: 255,
comment: "หน้าที่ความรับผิดชอบ",
default: null,
})
duty: string;
@ManyToOne(() => OrgRevision, (orgRevision) => orgRevision.orgChild1s)
@JoinColumn({ name: "orgRevisionId" })
orgRevision: OrgRevision;
@ -156,6 +165,10 @@ export class CreateOrgChild1 {
@Column("uuid")
orgRootId: string;
@Column()
duty?: string;
}
export type UpdateOrgChild1 = Partial<CreateOrgChild1> & { orgChild1Rank?: OrgChild1Rank };

View file

@ -113,6 +113,14 @@ export class OrgChild2 extends EntityBase {
})
ancestorDNA: string;
@Column({
nullable: true,
length: 255,
comment: "หน้าที่ความรับผิดชอบ",
default: null,
})
duty: string;
@ManyToOne(() => OrgRevision, (orgRevision) => orgRevision.orgChild2s)
@JoinColumn({ name: "orgRevisionId" })
orgRevision: OrgRevision;
@ -162,5 +170,9 @@ export class CreateOrgChild2 {
@Column("uuid")
orgChild1Id: string;
@Column()
duty?: string;
}
export type UpdateOrgChild2 = Partial<CreateOrgChild2> & { orgChild2Rank?: OrgChild2Rank };

View file

@ -120,6 +120,14 @@ export class OrgChild3 extends EntityBase {
})
ancestorDNA: string;
@Column({
nullable: true,
length: 255,
comment: "หน้าที่ความรับผิดชอบ",
default: null,
})
duty: string;
@ManyToOne(() => OrgRevision, (orgRevision) => orgRevision.orgChild3s)
@JoinColumn({ name: "orgRevisionId" })
orgRevision: OrgRevision;
@ -170,6 +178,9 @@ export class CreateOrgChild3 {
@Column("uuid")
orgChild2Id: string;
@Column()
duty?: string;
}
export type UpdateOrgChild3 = Partial<CreateOrgChild3> & { orgChild3Rank?: OrgChild3Rank };

View file

@ -125,6 +125,14 @@ export class OrgChild4 extends EntityBase {
})
ancestorDNA: string;
@Column({
nullable: true,
length: 255,
comment: "หน้าที่ความรับผิดชอบ",
default: null,
})
duty: string;
@ManyToOne(() => OrgRevision, (orgRevision) => orgRevision.orgChild4s)
@JoinColumn({ name: "orgRevisionId" })
orgRevision: OrgRevision;
@ -176,5 +184,8 @@ export class CreateOrgChild4 {
@Column("uuid")
orgChild3Id: string;
@Column()
duty?: string;
}
export type UpdateOrgChild4 = Partial<OrgChild4>;

View file

@ -99,7 +99,7 @@ export class OrgRoot extends EntityBase {
@Column({
nullable: true,
length: 255,
comment: "หน้าที่ความรับผิดชอบ ",
comment: "หน้าที่ความรับผิดชอบ",
default: null,
})
duty: string;