migrate responsibility

This commit is contained in:
Kittapath 2024-05-14 15:29:05 +07:00
parent 6311c9cb0d
commit 2eee5404a1
11 changed files with 285 additions and 37 deletions

View file

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