text: const mongoose = require('mongoose');
  mongoose.connect('mongodb://localhost:27017/swipe');
  const UserSchema = new mongoose.Schema({
    email: {
      type: String,
      default: ''
    },
    password: {
      type: String,
      default: ''
    },
    isDeleted: {
      type: Boolean,
      default: false
    },
    signUpDate: {
      type: Date,
      default: Date.now()
    }
  });
  /*
  UserSchema.methods.generateHash = function(password) {
    return bcrypt.hashSync(password, bcrypt.genSaltSync(8), null);
  };
  */
  UserSchema.methods.validPassword = function(password) {
    return password === this.password;
  };
  module.exports = mongoose.model('User', UserSchema);