fix: ลบ type
This commit is contained in:
parent
169fada8ae
commit
efb60a0c04
4 changed files with 8 additions and 145 deletions
|
|
@ -5,13 +5,12 @@ import { ProfileAbility } from "./ProfileAbility";
|
||||||
|
|
||||||
@Entity("profileAbilityHistory")
|
@Entity("profileAbilityHistory")
|
||||||
export class ProfileAbilityHistory extends EntityBase {
|
export class ProfileAbilityHistory extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
comment: "สถานะการใช้งาน",
|
comment: "สถานะการใช้งาน",
|
||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "หมายเหตุ",
|
comment: "หมายเหตุ",
|
||||||
|
|
@ -72,32 +71,3 @@ export class ProfileAbilityHistory extends EntityBase {
|
||||||
@JoinColumn({ name: "profileAbilityId" })
|
@JoinColumn({ name: "profileAbilityId" })
|
||||||
histories: ProfileAbility;
|
histories: ProfileAbility;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileAbilityHistory {
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
remark: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
detail: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
reference: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
dateStart: Date | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
dateEnd: Date | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
field: string | null;
|
|
||||||
|
|
||||||
@Column("uuid")
|
|
||||||
ProfileAbilityId: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type UpdateProfileAbilityHistory = Partial<CreateProfileAbilityHistory>;
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import { ProfileAssessment } from "./ProfileAssessment";
|
||||||
|
|
||||||
@Entity("profileAssessmentHistory")
|
@Entity("profileAssessmentHistory")
|
||||||
export class ProfileAssessmentHistory extends EntityBase {
|
export class ProfileAssessmentHistory extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
comment: "สถานะการใช้งาน",
|
comment: "สถานะการใช้งาน",
|
||||||
default: false,
|
default: false,
|
||||||
|
|
@ -15,11 +14,11 @@ export class ProfileAssessmentHistory extends EntityBase {
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ชื่อแบบประเมิน",
|
comment: "ชื่อแบบประเมิน",
|
||||||
type: "text",
|
type: "text",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
@ -83,43 +82,11 @@ export class ProfileAssessmentHistory extends EntityBase {
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
profileAssessmentId: string;
|
profileAssessmentId: string;
|
||||||
|
|
||||||
@ManyToOne(() => ProfileAssessment, (profileAssessment) => profileAssessment.profileAssessmentHistorys)
|
@ManyToOne(
|
||||||
|
() => ProfileAssessment,
|
||||||
|
(profileAssessment) => profileAssessment.profileAssessmentHistorys,
|
||||||
|
)
|
||||||
@JoinColumn({ name: "profileAssessmentId" })
|
@JoinColumn({ name: "profileAssessmentId" })
|
||||||
histories: ProfileAssessment;
|
histories: ProfileAssessment;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileAssessmentHistory {
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
name: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
date: Date | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
point1: number | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
point1Total: number | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
point2: number | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
point2Total: number | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
pointSum: number | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
pointSumTotal: number | null;
|
|
||||||
|
|
||||||
@Column("uuid")
|
|
||||||
profileAssessmentId: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type UpdateProfileAssessmentHistory = Partial<CreateProfileAssessmentHistory>;
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import { ProfileDuty } from "./ProfileDuty";
|
||||||
|
|
||||||
@Entity("profileDutyHistory")
|
@Entity("profileDutyHistory")
|
||||||
export class ProfileDutyHistory extends EntityBase {
|
export class ProfileDutyHistory extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
comment: "สถานะการใช้งาน",
|
comment: "สถานะการใช้งาน",
|
||||||
default: false,
|
default: false,
|
||||||
|
|
@ -68,37 +67,7 @@ export class ProfileDutyHistory extends EntityBase {
|
||||||
})
|
})
|
||||||
profileDutyId: string;
|
profileDutyId: string;
|
||||||
|
|
||||||
|
|
||||||
@ManyToOne(() => ProfileDuty, (profileDuty) => profileDuty.profileDutyHistories)
|
@ManyToOne(() => ProfileDuty, (profileDuty) => profileDuty.profileDutyHistories)
|
||||||
@JoinColumn({ name: "profileDutyId" })
|
@JoinColumn({ name: "profileDutyId" })
|
||||||
histories: ProfileDuty;
|
histories: ProfileDuty;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileDutyHistory {
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
dateStart: Date | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
dateEnd: Date | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
detail: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
reference: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
refCommandDate: Date | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
refCommandNo: string | null;
|
|
||||||
|
|
||||||
@Column("uuid")
|
|
||||||
profileDutyId: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type UpdateProfileDutyHistory = Partial<CreateProfileDutyHistory>;
|
|
||||||
|
|
|
||||||
|
|
@ -109,46 +109,3 @@ export class ProfileTrainingHistory extends EntityBase {
|
||||||
@JoinColumn({ name: "profileTrainingId" })
|
@JoinColumn({ name: "profileTrainingId" })
|
||||||
histories: ProfileTraining;
|
histories: ProfileTraining;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileTrainingHistory {
|
|
||||||
@Column()
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
startDate: Date | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
endDate: Date | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
numberOrder: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
topic: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
place: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
dateOrder: Date | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
department: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
duration: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
name: string | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
yearly: number | null;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
isDate: boolean | null;
|
|
||||||
|
|
||||||
@Column("uuid")
|
|
||||||
profileTrainingId: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type UpdateProfileTrainingHistory = Partial<CreateProfileTrainingHistory>;
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue