Skip to content

User Model Updates #9

@alejandroo-pc

Description

@alejandroo-pc

Description

The User model will need to be updated to include two new fields.

Acceptance Criteria

Update the User schema to include the following

  1. Phone number
  • type: Number
  • default: null
  1. Image (profile picture)
    I did some digging because I am unfamiliar with setting and storing images in mongo.
    Here are some resources I found to help setup the schema
  • type: Buffer (this may be incorrect, so change it accordingly)
  • name: string (we can set this to their username)
  • default: null

storing images in mongoDB
Geeks for Geeks article look at step 3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions