Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a user model #6

Open
Kiblindh opened this issue Apr 6, 2024 · 0 comments
Open

Create a user model #6

Kiblindh opened this issue Apr 6, 2024 · 0 comments

Comments

@Kiblindh
Copy link

Kiblindh commented Apr 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant