From eb3ca943b4df5ccae214947c2f610bcbf869b30c Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:28:49 +0700 Subject: [PATCH] fix: children entity type --- src/entities/ProfileFamily.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/entities/ProfileFamily.ts b/src/entities/ProfileFamily.ts index f7661835..0a25b040 100644 --- a/src/entities/ProfileFamily.ts +++ b/src/entities/ProfileFamily.ts @@ -195,9 +195,10 @@ export class ProfileChildren extends EntityBase { @Column({ nullable: true, default: null, + type: "boolean", comment: "มีชีวิตบุตร", }) - childrenLive: string; + childrenLive: boolean; @Column({ nullable: true, @@ -254,7 +255,7 @@ export type CreateChildren = { childrenFirstName: string; childrenLastName: string; childrenPrefix: string; - childrenLive: string; + childrenLive: boolean; childrenCitizenId: string; }; @@ -264,7 +265,7 @@ export type UpdateChildren = { childrenFirstName?: string | null; childrenLastName?: string | null; childrenPrefix?: string | null; - childrenLive?: string | null; + childrenLive?: boolean | null; childrenCitizenId?: string | null; };