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

@ -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 };