add fields appointDirector
This commit is contained in:
parent
e9c62d190a
commit
c4fbfc72e1
4 changed files with 76 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue