You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to create a user model that contains several relevant fields such as
*user_type (admin, interviewer or applicant)
*date_created
*first_name
*last_name
*email
*password
*hasApplication = boolean field that tells if the user has applied
=>Only relevant for the users of applicant type
Proposed solution
Create a schema that contains the fields using mongoose.schema function
The text was updated successfully, but these errors were encountered:
Description
We need to create a user model that contains several relevant fields such as
*user_type (admin, interviewer or applicant)
*date_created
*first_name
*last_name
*email
*password
*hasApplication = boolean field that tells if the user has applied
=>Only relevant for the users of applicant type
Proposed solution
Create a schema that contains the fields using mongoose.schema function
The text was updated successfully, but these errors were encountered: