const mongoose = require('mongoose');

const UserSchema = new mongoose.Schema({
 
  phone: {
    type: String,
    required: true
  },

    password: {
    type: String,
    required: true
  },

  email: {
    type: String,
    required: true
  },



  fullName: {
    type: String,
    required: false
  },

  isVerified: Boolean,

companiesOwning: [],

companiesManaging: [],
  
  country: String,
  

  // Reset Password starts
resetPasswordToken: {
    type: String,
    required: false
  },


resetPasswordExpires: {
    type: Date,
    required: false
  },
// Reset  Password ends

date: String
});

const User = mongoose.model('User', UserSchema);

module.exports = User;
