เพิ่ม id development

This commit is contained in:
kittapath 2024-08-27 17:30:19 +07:00
parent 70e1ab9efd
commit 9d232d1f26
7 changed files with 62 additions and 241 deletions

View file

@ -29,26 +29,12 @@ export class DevelopmentProject extends EntityBase {
})
profileDevelopmentId: string;
@ManyToOne(
() => ProfileDevelopment,
(profileDevelopment: ProfileDevelopment) => profileDevelopment.developmentProjects,
)
@JoinColumn({ name: "profileDevelopmentId" })
profileDevelopment: ProfileDevelopment;
@Column({
nullable: true,
comment: "โครงการ/หลักสูตรการฝึกอบรม",
default: null,
})
profileDevelopmentHistoryId: string;
@ManyToOne(
() => ProfileDevelopmentHistory,
(profileDevelopmentHistory: ProfileDevelopmentHistory) => profileDevelopmentHistory.developmentHistoryProjects,
)
@JoinColumn({ name: "profileDevelopmentHistoryId" })
profileDevelopmentHistory: ProfileDevelopmentHistory;
}
export class CreateDevelopmentProject {
@Column()