fix: ลบ isActive
This commit is contained in:
parent
7e26653ed9
commit
da898594a9
2 changed files with 16 additions and 0 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue