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 users #2

Open
2 tasks
LauraBeatris opened this issue Sep 25, 2020 · 3 comments · May be fixed by #11
Open
2 tasks

Create users #2

LauraBeatris opened this issue Sep 25, 2020 · 3 comments · May be fixed by #11
Assignees

Comments

@LauraBeatris
Copy link
Contributor

LauraBeatris commented Sep 25, 2020

Description

Add new fields to user schema.

Notes

User table:

image

  • Possible roles: user and admin
    The NULL in field means the field could be null

  • Save the phone number only with numbers

  • We will not implement file upload for now, so the field photo can be a string. We can use the library Faker as a workaround. (docs here)

Tasks

  • Add fields to user schema
  • Create seeds (one normal user and one admin are enough for now)
@LauraBeatris LauraBeatris self-assigned this Oct 19, 2020
@LauraBeatris
Copy link
Contributor Author

@LeoLeiteSC Instead of using Faker to add the photo field as a string, can we use something like https://placeholder.com/?

@LauraBeatris
Copy link
Contributor Author

Should we worry about these deprecated warnings?

image

@LeoLeiteSC
Copy link
Contributor

Should we worry about these deprecated warnings?

image

If this happens on the dependencies, don't worry. If it happens in our application directly, it deserves our attention haha

@LeoLeiteSC LeoLeiteSC linked a pull request Nov 14, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants