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 { ProfileHonor } from "./ProfileHonor";
|
|||
|
||||
@Entity("profileHonorHistory")
|
||||
export class ProfileHonorHistory extends EntityBase {
|
||||
|
||||
@Column({
|
||||
comment: "สถานะการใช้งาน",
|
||||
default: false,
|
||||
|
|
@ -60,13 +59,19 @@ export class ProfileHonorHistory extends EntityBase {
|
|||
})
|
||||
profileHonorId: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ประเภทช่วงเวลาการศึกษา",
|
||||
default: null,
|
||||
})
|
||||
isDate: boolean;
|
||||
|
||||
@ManyToOne(() => ProfileHonor, (profileHonor) => profileHonor.profileHonorHistories)
|
||||
@JoinColumn({ name: "profileHonorId" })
|
||||
histories: ProfileHonor;
|
||||
}
|
||||
|
||||
export class CreateProfileHonorHistory {
|
||||
|
||||
@Column()
|
||||
isActive: boolean;
|
||||
|
||||
|
|
@ -80,11 +85,14 @@ export class CreateProfileHonorHistory {
|
|||
issuer: string | null;
|
||||
|
||||
@Column()
|
||||
refCommandDate: Date | null;
|
||||
refCommandDate: Date | null;
|
||||
|
||||
@Column()
|
||||
refCommandNo: string | null;
|
||||
|
||||
@Column()
|
||||
isDate: boolean | null;
|
||||
|
||||
@Column("uuid")
|
||||
profileHonorId: string | null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue