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; }