fix: เเก้ รับ date null
This commit is contained in:
parent
9b0a5e9194
commit
169fada8ae
5 changed files with 80 additions and 106 deletions
|
|
@ -18,7 +18,7 @@ export class ProfileAbility extends EntityBase {
|
|||
default: false,
|
||||
})
|
||||
isActive: boolean;
|
||||
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "หมายเหตุ",
|
||||
|
|
@ -67,7 +67,10 @@ export class ProfileAbility extends EntityBase {
|
|||
})
|
||||
field: string;
|
||||
|
||||
@OneToMany(() => ProfileAbilityHistory, (profileAbilityHistory) => profileAbilityHistory.histories)
|
||||
@OneToMany(
|
||||
() => ProfileAbilityHistory,
|
||||
(profileAbilityHistory) => profileAbilityHistory.histories,
|
||||
)
|
||||
profileAbilityHistorys: ProfileAbilityHistory[];
|
||||
|
||||
@ManyToOne(() => Profile, (profile) => profile.profileAbilities)
|
||||
|
|
@ -76,29 +79,23 @@ export class ProfileAbility extends EntityBase {
|
|||
}
|
||||
|
||||
export class CreateProfileAbility {
|
||||
@Column("uuid")
|
||||
profileId: string | null;
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
export type UpdateProfileAbility = Partial<CreateProfileAbility>;
|
||||
export type UpdateProfileAbility = {
|
||||
profileId: string | null;
|
||||
isActive: boolean;
|
||||
remark: string | null;
|
||||
detail: string | null;
|
||||
reference: string | null;
|
||||
dateStart?: Date | null;
|
||||
dateEnd?: Date | null;
|
||||
field: string | null;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue