fix: add missing column isDate
This commit is contained in:
parent
863512ed2d
commit
b53078016d
4 changed files with 27 additions and 7 deletions
|
|
@ -5,7 +5,6 @@ import { ProfileTraining } from "./ProfileTraining";
|
|||
|
||||
@Entity("profileTrainingHistory")
|
||||
export class ProfileTrainingHistory extends EntityBase {
|
||||
|
||||
@Column({
|
||||
comment: "สถานะการใช้งาน",
|
||||
default: false,
|
||||
|
|
@ -98,14 +97,20 @@ export class ProfileTrainingHistory extends EntityBase {
|
|||
default: null,
|
||||
})
|
||||
profileTrainingId: string;
|
||||
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ประเภทช่วงเวลาการศึกษา",
|
||||
default: null,
|
||||
})
|
||||
isDate: boolean;
|
||||
|
||||
@ManyToOne(() => ProfileTraining, (profileTraining) => profileTraining.profileTrainingHistories)
|
||||
@JoinColumn({ name: "profileTrainingId" })
|
||||
histories: ProfileTraining;
|
||||
}
|
||||
|
||||
export class CreateProfileTrainingHistory {
|
||||
|
||||
@Column()
|
||||
isActive: boolean;
|
||||
|
||||
|
|
@ -116,7 +121,7 @@ export class CreateProfileTrainingHistory {
|
|||
endDate: Date | null;
|
||||
|
||||
@Column()
|
||||
numberOrder: string | null;
|
||||
numberOrder: string | null;
|
||||
|
||||
@Column()
|
||||
topic: string | null;
|
||||
|
|
@ -139,6 +144,9 @@ export class CreateProfileTrainingHistory {
|
|||
@Column()
|
||||
yearly: number | null;
|
||||
|
||||
@Column()
|
||||
isDate: boolean | null;
|
||||
|
||||
@Column("uuid")
|
||||
profileTrainingId: string | null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue