loading...

User Signup adjustments

mtee profile image Margaret W.N ・1 min read

I made a few a adjustments to my user model. The signup should require the first name, last name and the email should be unique.

const userModel = new Schema(
  {
    firstName: {
      type: String,
      required: true
    },
    lastName: {
      type: String,
      required: true
    },
    email: {
      type: String,
      required: true,
      unique: true
    },
  }
);

Day 24

Discussion

markdown guide