This commit is contained in:
DESKTOP-2S5P7D1\Windows 10 2025-02-05 15:37:47 +07:00
parent 81b7e14398
commit 5267478dce
4 changed files with 1982 additions and 2135 deletions

View file

@ -118,6 +118,21 @@ export class Personal extends EntityBase {
@Column({ nullable: true, comment: "id หน่วยงาน child4", default: null })
child4: string
@Column({ nullable: true, comment: "id หน่วยงาน root", default: null })
rootDna: string
@Column({ nullable: true, comment: "id หน่วยงาน child1", default: null })
child1Dna: string
@Column({ nullable: true, comment: "id หน่วยงาน child2", default: null })
child2Dna: string
@Column({ nullable: true, comment: "id หน่วยงาน child3", default: null })
child3Dna: string
@Column({ nullable: true, comment: "id หน่วยงาน child4", default: null })
child4Dna: string
@OneToMany(() => Assign, (assign: Assign) => assign.personal_id)
@JoinColumn({ name: "id" })
assign: Assign[]
@ -204,6 +219,12 @@ export class PostPersonal {
child2?: string | null
child3?: string | null
child4?: string | null
rootDna?: string | null
child1Dna?: string | null
child2Dna?: string | null
child3Dna?: string | null
child4Dna?: string | null
}
export type UpdatePersonal = Partial<CreatePersonal>