diff --git a/src/entities/ProfileEducation.ts b/src/entities/ProfileEducation.ts index 974d68ab..c7cfa61c 100644 --- a/src/entities/ProfileEducation.ts +++ b/src/entities/ProfileEducation.ts @@ -177,68 +177,49 @@ export class ProfileEducation extends EntityBase { } export class CreateProfileEducation { - @Column("uuid") profileId: string | null; - - @Column() isActive: boolean; - - @Column() country: string | null; - - @Column() degree: string | null; - - @Column() duration: string | null; - - @Column() durationYear: number; - - @Column() field: string | null; - - @Column() finishDate: Date | null; - - @Column() fundName: string | null; - - @Column() gpa: string | null; - - @Column() institute: string | null; - - @Column() other: string | null; - - @Column() startDate: Date | null; - - @Column() endDate: Date | null; - - @Column() educationLevel: string | null; - - @Column("uuid") educationLevelId: string | null; - - @Column() positionPath: string | null; - - @Column("uuid") positionPathId: string | null; - - @Column() isDate: boolean | null; - - @Column() isEducation: boolean | null; - - @Column() note: string | null; } -export type UpdateProfileEducation = Partial; +export type UpdateProfileEducation = { + profileId?: string | null; + isActive?: boolean; + country?: string | null; + degree?: string | null; + duration?: string | null; + durationYear?: number; + field?: string | null; + finishDate?: Date | null; + fundName?: string | null; + gpa?: string | null; + institute?: string | null; + other?: string | null; + startDate?: Date | null; + endDate?: Date | null; + educationLevel?: string | null; + educationLevelId?: string | null; + positionPath?: string | null; + positionPathId?: string | null; + isDate?: boolean | null; + isEducation?: boolean | null; + note?: string | null; +}; diff --git a/src/entities/ProfileHonor.ts b/src/entities/ProfileHonor.ts index ab9cf936..d58614f1 100644 --- a/src/entities/ProfileHonor.ts +++ b/src/entities/ProfileHonor.ts @@ -75,29 +75,23 @@ export class ProfileHonor extends EntityBase { } export class CreateProfileHonor { - @Column("uuid") profileId: string | null; - - @Column() isActive: boolean; - - @Column() detail: string | null; - - @Column() issueDate: Date | null; - - @Column() issuer: string | null; - - @Column() - refCommandDate: Date | null; - - @Column() + refCommandDate: Date | null; refCommandNo: string | null; - - @Column() isDate: boolean | null; } -export type UpdateProfileHonor = Partial; +export type UpdateProfileHonor = { + profileId?: string | null; + isActive?: boolean; + detail?: string | null; + issueDate?: Date | null; + issuer?: string | null; + refCommandDate?: Date | null; + refCommandNo?: string | null; + isDate?: boolean | null; +};