Mongodb Schema | Models| LogSyS

/models/Users.js

const mongoose = require('mongoose');


const  UserSchema = new mongoose.Schema({

  email : {
        type : String ,
        required : true
    },
  password : {
      type : String ,
      required : true
  }
});

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

Comments

Popular posts from this blog

edistrict

richTextEditor

CSS-position property