From 0b9a7ba18d72d5b7563ca3f14e097d7c6e236d12 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:46:07 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E0=B8=A5=E0=B8=9A=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entities/ProfileNopaidHistory.ts | 29 ---------------------------- src/entities/ProfileOtherHistory.ts | 18 +---------------- 2 files changed, 1 insertion(+), 46 deletions(-) diff --git a/src/entities/ProfileNopaidHistory.ts b/src/entities/ProfileNopaidHistory.ts index efdc8641..e8f4cf71 100644 --- a/src/entities/ProfileNopaidHistory.ts +++ b/src/entities/ProfileNopaidHistory.ts @@ -5,7 +5,6 @@ import { ProfileNopaid } from "./ProfileNopaid"; @Entity("profileNopaidHistory") export class ProfileNopaidHistory extends EntityBase { - @Column({ comment: "สถานะการใช้งาน", default: false, @@ -60,35 +59,7 @@ export class ProfileNopaidHistory extends EntityBase { }) profileNopaidId: string; - @ManyToOne(() => ProfileNopaid, (profileNopaid) => profileNopaid.profileNopaidHistories) @JoinColumn({ name: "profileNopaidId" }) histories: ProfileNopaid; } - -export class CreateProfileNopaidHistory { - - @Column() - isActive: boolean; - - @Column() - date: Date | null; - - @Column() - detail: string | null; - - @Column() - reference: string | null; - - @Column() - refCommandDate: Date | null; - - @Column() - refCommandNo: string | null; - - @Column("uuid") - profileNopaidId: string | null; - -} - -export type UpdateProfileNopaidHistory = Partial; diff --git a/src/entities/ProfileOtherHistory.ts b/src/entities/ProfileOtherHistory.ts index fce37b14..ed374bef 100644 --- a/src/entities/ProfileOtherHistory.ts +++ b/src/entities/ProfileOtherHistory.ts @@ -17,7 +17,7 @@ export class ProfileOtherHistory extends EntityBase { default: false, }) isActive: boolean; - + @Column({ nullable: true, comment: "รายละเอียด", @@ -38,19 +38,3 @@ export class ProfileOtherHistory extends EntityBase { @JoinColumn({ name: "profileOtherId" }) histories: ProfileOther; } - -export class CreateProfileOtherHistory { - @Column("uuid") - profileOtherId: string | null; - - @Column() - isActive: boolean; - - @Column() - detail: string | null; - - @Column() - date: Date | null; -} - -export type UpdateProfileOtherHistory = Partial;