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".
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".