add fields appointDirector

This commit is contained in:
Bright 2024-12-26 16:38:33 +07:00
parent e9c62d190a
commit c4fbfc72e1
4 changed files with 76 additions and 1 deletions

View file

@ -59,6 +59,11 @@ export type Person = {
role: string | null
posNo?: string | null
actFullName?: string | null
prefix?: string | null
fullName?: string | null
lastName?: string | null
citizenId?: string | null
rootId?: string | null
}
export class UpdateAppoint {

View file

@ -64,6 +64,46 @@ export class AppointDirector extends EntityBase {
})
actFullName: string
@Column({
nullable: true,
comment: "คำนำหน้าชื่อ",
length: 40,
default: null,
})
prefix: string;
@Column({
nullable: true,
comment: "ชื่อ",
length: 255,
default: null,
})
firstName: string;
@Column({
nullable: true,
comment: "นามสกุล",
length: 255,
default: null,
})
lastName: string;
@Column({
nullable: true,
comment: "เลขประจำตัวประชาชน",
default: null,
length: 13,
})
citizenId: string;
@Column({
nullable: true,
length: 40,
comment: "คีย์นอก(FK)ของตาราง orgRoot",
default: null,
})
rootId: string;
@ManyToOne(() => Appoint, (appoint: Appoint) => appoint.directors)
@JoinColumn({ name: "appointId" })
appoint: Appoint