[Edit SIT ระบบพัฒนา] รายการที่ต้องแก้ไข #1331

This commit is contained in:
Bright 2025-04-22 10:14:31 +07:00
parent 101eabbac0
commit 8c7cbef72b
6 changed files with 71 additions and 11 deletions

View file

@ -20,7 +20,7 @@ export class DevelopmentAddress extends EntityBase {
@Column({
nullable: true,
comment: "โครงการ/หลักสูตรการฝึกอบรม",
comment: "ชื่อจังหวัด (กรณีเลือกสถานที่ดำเนินการในประเทศ)",
default: null,
})
provinceName: string;
@ -32,6 +32,20 @@ export class DevelopmentAddress extends EntityBase {
})
developmentId: string;
@Column({
nullable: true,
comment: "สถานที่ดำเนินการ ในประเทศ(IN_COUNTRY) หรือ ต่างประเทศ(ABROAD)",
default: null,
})
addressType: string;
@Column({
nullable: true,
comment: "ชื่อประเทศ (กรณีเลือกสถานที่ดำเนินการต่างประเทศ)",
default: null,
})
country: string;
@ManyToOne(() => Development, (development: Development) => development.developmentAddresss)
@JoinColumn({ name: "developmentId" })
development: Development;
@ -39,6 +53,16 @@ export class DevelopmentAddress extends EntityBase {
export class CreateDevelopmentAddress {
@Column()
address: string | null;
@Column()
provinceId: string | null;
@Column()
addressType?: string | null;
@Column()
provinceName?: string | null;
@Column()
country?: string | null;
}