From cea12a540f8888b9c7f326fcab6ad09060f01746 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 6 Feb 2024 11:02:29 +0700 Subject: [PATCH] update profile entity --- src/entities/Profile.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/entities/Profile.ts b/src/entities/Profile.ts index fe3fb1e7..38e328a7 100644 --- a/src/entities/Profile.ts +++ b/src/entities/Profile.ts @@ -32,8 +32,9 @@ export class Profile extends EntityBase { nullable: true, comment: "เลขประจำตัวประชาชน", default: null, + length: 13 }) - citizenId: number; + citizenId: string; @OneToMany(() => PosMaster, (posMaster) => posMaster.profile) posMasters: PosMaster[]; @@ -53,7 +54,7 @@ export class CreateProfile { lastName: string; @Column() - citizenId: number; + citizenId: string; }