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