fix: ลบ column ไม่ได้ใช้ออก

This commit is contained in:
Net 2024-03-21 10:21:22 +07:00
parent 61b166cabc
commit 8b3398e7f7
6 changed files with 14 additions and 84 deletions

View file

@ -5,12 +5,6 @@ import { ProfileTraining } from "./ProfileTraining";
@Entity("profileTrainingHistory")
export class ProfileTrainingHistory extends EntityBase {
@Column({
comment: "สถานะการใช้งาน",
default: false,
})
isActive: boolean;
@Column({
nullable: true,
type: "datetime",
@ -98,13 +92,6 @@ 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;