Open sfwnisme opened 2 weeks ago
I've updated the user database schema and made the necessary changes to the Get Users , Get User by ID, Add User, and Edit User endpoints. The updates are now pushed to the feature/reinforce-user-schema
branch.
I think there is some columns we do not need it in the user schema you can see the difference bellow
I suggest to make this change for the user, create user, update user schemas.
{
id: number;
email: string;
fullName: string;
firstname: string;
lastname: string;
username: string;
createdAt: string;
lastUpdate: string;
gender: string;
phoneNumber: string;
roles: string[];
image: string;
}
you can refine the schema using important columns form the following example