แก้ชื่อ tag

This commit is contained in:
Kittapath 2024-01-26 17:09:28 +07:00
parent 4b4f2423fa
commit f509e10f8c
9 changed files with 151 additions and 107 deletions

View file

@ -12,7 +12,6 @@ enum OrgChild1Rank {
@Entity("orgChild1")
export class OrgChild1 extends EntityBase {
@Column({
nullable: true,
comment: "ชื่อส่วนราชการ",
@ -75,7 +74,7 @@ export class OrgChild1 extends EntityBase {
@Column({
nullable: true,
comment: "สถานะของหน่วยงาน",
default: true
default: true,
})
orgChild1IsNormal: boolean;
@ -91,17 +90,15 @@ export class OrgChild1 extends EntityBase {
})
isAncestorDNA: string;
@ManyToOne(() => OrgRoot, orgRoot => orgRoot.orgChild1s)
@ManyToOne(() => OrgRoot, (orgRoot) => orgRoot.orgChild1s)
@JoinColumn({ name: "orgRootId" })
orgRoot: OrgRoot;
@OneToMany(() => OrgChild2, orgChild2 => orgChild2.orgChild1)
@OneToMany(() => OrgChild2, (orgChild2) => orgChild2.orgChild1)
orgChild2s: OrgChild2[];
}
export class CreateOrgChild1 {
@Column()
orgChild1Name: string;
@ -110,22 +107,21 @@ export class CreateOrgChild1 {
@Column()
orgChild1Code?: string;
@Column()
orgChild1Rank: string;
@Column()
orgChild1PhoneEx: string;
orgChild1PhoneEx?: string;
@Column()
orgChild1PhoneIn: string;
orgChild1PhoneIn?: string;
@Column()
orgChild1Fax: string;
orgChild1Fax?: string;
@Column('uuid')
@Column("uuid")
orgRootId: string;
}
export type UpdateOrgChild1 = Partial<CreateOrgChild1> & { orgChild1Rank?: OrgChild1Rank };