High-Table-Consortium / fullstack-capstone-dockerized

0 stars 3 forks source link

Create user Schema #13

Closed PhamelaMhlaba closed 1 month ago

PhamelaMhlaba commented 1 month ago

Description: Create the User schema to store information about users of the app. The schema should include fields for:

username: A string that uniquely identifies the user. It is required and must be unique. email: A string to store the user's email address. It should be unique and required, following a standard email format. password: A string to store the user's password. It is required and should be securely hashed before being saved to the database. createdAt: A date field indicating when the user account was created. It should have a default value set to the current date and time. role: A string to define the role of the user (e.g., "tourist" or "guide"). It should have a default value of "tourist".

PhamelaMhlaba commented 1 month ago

I am happy with the overall structure that I created