Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/rest-api. A rest api test.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728var mongoose = require('mongoose');var Schema = mongoose.Schema;module.exports = new Schema({ firstName: { type: String, required: 'Enter a first name' }, lastName: { type: String, required: 'Enter a last name' }, email: { type: String }, company: { type: String }, phone: { type: Number }, created_date: { type: Date, default: Date.now }}, { collection: 'contacts'});