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

@ -5,13 +5,6 @@ import { ProfileChangeName } from "./ProfileChangeName";
@Entity("profileChangeNameHistory")
export class ProfileChangeNameHistory extends EntityBase {
@Column({
comment: "สถานะการใช้งาน",
default: false,
})
isActive: boolean;
@Column({
nullable: true,
length: 40,
@ -68,15 +61,16 @@ export class ProfileChangeNameHistory extends EntityBase {
})
profileChangeNameId: string;
@ManyToOne(() => ProfileChangeName, (profileChangeName) => profileChangeName.profileChangeNameHistories)
@ManyToOne(
() => ProfileChangeName,
(profileChangeName) => profileChangeName.profileChangeNameHistories,
)
@JoinColumn({ name: "profileChangeNameId" })
histories: ProfileChangeName;
}
export class CreateProfileChangeNameHistory {
profileChangeNameId: string | null;
isActive: boolean;
prefixId: string | null;
prefix: string | null;
firstName: string | null;
@ -87,7 +81,6 @@ export class CreateProfileChangeNameHistory {
export type UpdateProfileChangeNameHistory = {
profileChangeNameId?: string | null;
isActive?: boolean;
prefixId?: string | null;
prefix?: string | null;
firstName?: string | null;