แก้ชื่อ 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

@ -14,12 +14,12 @@ enum OrgChild2Rank {
}
@Entity("orgChild2")
export class OrgChild2 extends EntityBase {
// @Column({
// comment: "",
// length: 40,
// default: "00000000-0000-0000-0000-000000000000",
// })
// orgChild2Id: string;
// @Column({
// comment: "",
// length: 40,
// default: "00000000-0000-0000-0000-000000000000",
// })
// orgChild2Id: string;
@Column({
nullable: true,
@ -84,7 +84,7 @@ export class OrgChild2 extends EntityBase {
@Column({
nullable: true,
comment: "สถานะของหน่วยงาน", //ปกติ = 1 , ยุกเลิก = 0
default: true
default: true,
})
orgChild2IsNormal: boolean;
@ -106,17 +106,15 @@ export class OrgChild2 extends EntityBase {
})
isAncestorDNA: string;
@ManyToOne(() => OrgChild1, orgChild1 => orgChild1.orgChild2s)
@ManyToOne(() => OrgChild1, (orgChild1) => orgChild1.orgChild2s)
@JoinColumn({ name: "orgChild1Id" })
orgChild1: OrgChild1;
@OneToMany(() => OrgChild3, orgChild3 => orgChild3.orgChild2)
@OneToMany(() => OrgChild3, (orgChild3) => orgChild3.orgChild2)
orgChild3s: OrgChild3[];
}
export class CreateOrgChild2 {
@Column()
orgChild2Name: string;
@ -125,21 +123,20 @@ export class CreateOrgChild2 {
@Column()
orgChild2Code: string;
@Column()
orgChild2Rank: string;
@Column()
orgChild2PhoneEx: string;
orgChild2PhoneEx?: string;
@Column()
orgChild2PhoneIn: string;
orgChild2PhoneIn?: string;
@Column()
orgChild2Fax: string;
orgChild2Fax?: string;
@Column('uuid')
@Column("uuid")
orgChild1Id: string;
}
export type UpdateOrgChild2 = Partial<CreateOrgChild2>;
export type UpdateOrgChild2 = Partial<CreateOrgChild2> & { orgChild2Rank?: OrgChild2Rank };