fix: ลบ isActive

This commit is contained in:
Net 2024-03-21 14:19:42 +07:00
parent 7e26653ed9
commit da898594a9
2 changed files with 16 additions and 0 deletions

View file

@ -92,6 +92,13 @@ export class ProfileTraining extends EntityBase {
}) })
yearly: number; yearly: number;
@Column({
nullable: true,
comment: "ประเภทช่วงเวลาการศึกษา",
default: null,
})
isDate: boolean;
@OneToMany( @OneToMany(
() => ProfileTrainingHistory, () => ProfileTrainingHistory,
(profileTrainingHistory) => profileTrainingHistory.histories, (profileTrainingHistory) => profileTrainingHistory.histories,
@ -115,6 +122,7 @@ export class CreateProfileTraining {
duration: string | null; duration: string | null;
name: string | null; name: string | null;
yearly: number | null; yearly: number | null;
isDate: boolean | null;
} }
export type UpdateProfileTraining = { export type UpdateProfileTraining = {
@ -128,4 +136,5 @@ export type UpdateProfileTraining = {
duration?: string | null; duration?: string | null;
name?: string | null; name?: string | null;
yearly?: number | null; yearly?: number | null;
isDate?: boolean | null;
}; };

View file

@ -92,6 +92,13 @@ export class ProfileTrainingHistory extends EntityBase {
}) })
profileTrainingId: string; profileTrainingId: string;
@Column({
nullable: true,
comment: "ประเภทช่วงเวลาการศึกษา",
default: null,
})
isDate: boolean;
@ManyToOne(() => ProfileTraining, (profileTraining) => profileTraining.profileTrainingHistories) @ManyToOne(() => ProfileTraining, (profileTraining) => profileTraining.profileTrainingHistories)
@JoinColumn({ name: "profileTrainingId" }) @JoinColumn({ name: "profileTrainingId" })
histories: ProfileTraining; histories: ProfileTraining;