add mis id

This commit is contained in:
kittapath 2025-01-17 16:11:30 +07:00
parent 58d1003ecc
commit 15f54f3e55
11 changed files with 131 additions and 0 deletions

View file

@ -16,6 +16,14 @@ enum OrgChild1Rank {
@Entity("orgChild1")
export class OrgChild1 extends EntityBase {
@Column({
nullable: true,
comment: "MisId",
length: 255,
default: null,
})
misId: string;
@Column({
nullable: true,
comment: "ชื่อส่วนราชการ",
@ -176,6 +184,9 @@ export class CreateOrgChild1 {
@Column()
isOfficer: boolean;
@Column()
misId?: string;
}
export type UpdateOrgChild1 = Partial<CreateOrgChild1> & { orgChild1Rank?: OrgChild1Rank };

View file

@ -15,6 +15,14 @@ enum OrgChild2Rank {
}
@Entity("orgChild2")
export class OrgChild2 extends EntityBase {
@Column({
nullable: true,
comment: "MisId",
length: 255,
default: null,
})
misId: string;
@Column({
nullable: true,
comment: "ชื่อส่วนราชการ",
@ -173,5 +181,8 @@ export class CreateOrgChild2 {
@Column()
responsibility?: string;
@Column()
misId?: string;
}
export type UpdateOrgChild2 = Partial<CreateOrgChild2> & { orgChild2Rank?: OrgChild2Rank };

View file

@ -16,6 +16,14 @@ enum OrgChild3Rank {
@Entity("orgChild3")
export class OrgChild3 extends EntityBase {
@Column({
nullable: true,
comment: "MisId",
length: 255,
default: null,
})
misId: string;
@Column({
nullable: true,
comment: "ชื่อส่วนราชการ",
@ -181,6 +189,9 @@ export class CreateOrgChild3 {
@Column()
responsibility?: string;
@Column()
misId?: string;
}
export type UpdateOrgChild3 = Partial<CreateOrgChild3> & { orgChild3Rank?: OrgChild3Rank };

View file

@ -15,6 +15,14 @@ enum OrgChild4Rank {
}
@Entity("orgChild4")
export class OrgChild4 extends EntityBase {
@Column({
nullable: true,
comment: "MisId",
length: 255,
default: null,
})
misId: string;
@Column({
nullable: true,
comment: "ชื่อส่วนราชการ",
@ -187,5 +195,8 @@ export class CreateOrgChild4 {
@Column()
responsibility?: string;
@Column()
misId?: string;
}
export type UpdateOrgChild4 = Partial<OrgChild4>;

View file

@ -17,6 +17,14 @@ enum OrgRootRank {
@Entity("orgRoot")
export class OrgRoot extends EntityBase {
@Column({
nullable: true,
comment: "MisId",
length: 255,
default: null,
})
misId: string;
@Column({
nullable: true,
comment: "ชื่อหน่วยงาน",
@ -173,6 +181,9 @@ export class CreateOrgRoot {
@Column()
isDeputy: boolean;
@Column()
misId?: string;
}
export type UpdateOrgRoot = Partial<CreateOrgRoot> & { orgRootRank?: OrgRootRank };