Skip to content

Instantly share code, notes, and snippets.

@slmanju
Last active January 9, 2018 10:44
Show Gist options
  • Select an option

  • Save slmanju/63a018e35f73df7d94d41d759306d025 to your computer and use it in GitHub Desktop.

Select an option

Save slmanju/63a018e35f73df7d94d41d759306d025 to your computer and use it in GitHub Desktop.
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var employeeSchema = new Schema({
firstName:{ type: String, required: true },
lastName:{ type: String, required: true },
email: { type: String, required: true },
password: String
});
var Employee = mongoose.model("employee", employeeSchema);
module.exports = Employee;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment