fix: ลบ type
This commit is contained in:
parent
5b2c56cb78
commit
0b9a7ba18d
2 changed files with 1 additions and 46 deletions
|
|
@ -5,7 +5,6 @@ import { ProfileNopaid } from "./ProfileNopaid";
|
||||||
|
|
||||||
@Entity("profileNopaidHistory")
|
@Entity("profileNopaidHistory")
|
||||||
export class ProfileNopaidHistory extends EntityBase {
|
export class ProfileNopaidHistory extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
comment: "สถานะการใช้งาน",
|
comment: "สถานะการใช้งาน",
|
||||||
default: false,
|
default: false,
|
||||||
|
|
@ -60,35 +59,7 @@ export class ProfileNopaidHistory extends EntityBase {
|
||||||
})
|
})
|
||||||
profileNopaidId: string;
|
profileNopaidId: string;
|
||||||
|
|
||||||
|
|
||||||
@ManyToOne(() => ProfileNopaid, (profileNopaid) => profileNopaid.profileNopaidHistories)
|
@ManyToOne(() => ProfileNopaid, (profileNopaid) => profileNopaid.profileNopaidHistories)
|
||||||
@JoinColumn({ name: "profileNopaidId" })
|
@JoinColumn({ name: "profileNopaidId" })
|
||||||
histories: ProfileNopaid;
|
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<CreateProfileNopaidHistory>;
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ export class ProfileOtherHistory extends EntityBase {
|
||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "รายละเอียด",
|
comment: "รายละเอียด",
|
||||||
|
|
@ -38,19 +38,3 @@ export class ProfileOtherHistory extends EntityBase {
|
||||||
@JoinColumn({ name: "profileOtherId" })
|
@JoinColumn({ name: "profileOtherId" })
|
||||||
histories: ProfileOther;
|
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<CreateProfileOtherHistory>;
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue