diff --git a/src/entities/ProfileTraining.ts b/src/entities/ProfileTraining.ts index 05807251..c6295865 100644 --- a/src/entities/ProfileTraining.ts +++ b/src/entities/ProfileTraining.ts @@ -92,6 +92,13 @@ export class ProfileTraining extends EntityBase { }) yearly: number; + @Column({ + nullable: true, + comment: "ประเภทช่วงเวลาการศึกษา", + default: null, + }) + isDate: boolean; + @OneToMany( () => ProfileTrainingHistory, (profileTrainingHistory) => profileTrainingHistory.histories, @@ -115,6 +122,7 @@ export class CreateProfileTraining { duration: string | null; name: string | null; yearly: number | null; + isDate: boolean | null; } export type UpdateProfileTraining = { @@ -128,4 +136,5 @@ export type UpdateProfileTraining = { duration?: string | null; name?: string | null; yearly?: number | null; + isDate?: boolean | null; }; diff --git a/src/entities/ProfileTrainingHistory.ts b/src/entities/ProfileTrainingHistory.ts index f54d8b94..4541725d 100644 --- a/src/entities/ProfileTrainingHistory.ts +++ b/src/entities/ProfileTrainingHistory.ts @@ -92,6 +92,13 @@ export class ProfileTrainingHistory extends EntityBase { }) profileTrainingId: string; + @Column({ + nullable: true, + comment: "ประเภทช่วงเวลาการศึกษา", + default: null, + }) + isDate: boolean; + @ManyToOne(() => ProfileTraining, (profileTraining) => profileTraining.profileTrainingHistories) @JoinColumn({ name: "profileTrainingId" }) histories: ProfileTraining;