fix: ลบ isActive

This commit is contained in:
Net 2024-03-21 14:11:53 +07:00 committed by Methapon2001
parent c13ca10a3e
commit 23f8382928
18 changed files with 36 additions and 165 deletions

View file

@ -21,12 +21,6 @@ export class ProfileCertificate extends EntityBase {
})
expireDate: Date;
@Column({
comment: "สถานะการใช้งาน",
default: false,
})
isActive: boolean;
@Column({
nullable: true,
type: "datetime",
@ -34,7 +28,7 @@ export class ProfileCertificate extends EntityBase {
default: null,
})
issueDate: Date;
@Column({
nullable: true,
comment: "เลขที่ใบอนุญาต",
@ -50,7 +44,7 @@ export class ProfileCertificate extends EntityBase {
default: null,
})
certificateType: string;
@Column({
nullable: true,
comment: "หน่วยงานผู้ออกใบอนุญาต",
@ -59,19 +53,20 @@ export class ProfileCertificate extends EntityBase {
})
issuer: string;
@OneToMany(() => ProfileCertificateHistory, (profileCertificateHistory) => profileCertificateHistory.histories)
@OneToMany(
() => ProfileCertificateHistory,
(profileCertificateHistory) => profileCertificateHistory.histories,
)
profileCertificateHistories: ProfileCertificateHistory[];
@ManyToOne(() => Profile, (profile) => profile.profileCertificates)
@JoinColumn({ name: "profileId" })
profile: Profile;
}
export class CreateProfileCertificate {
profileId: string | null;
expireDate: Date | null;
isActive: boolean;
issueDate: Date | null;
certificateNo: string | null;
certificateType: string | null;
@ -80,7 +75,6 @@ export class CreateProfileCertificate {
export type UpdateProfileCertificate = {
expireDate?: Date | null;
isActive?: boolean;
issueDate?: Date | null;
certificateNo?: string | null;
certificateType?: string | null;