Skip to content

Instantly share code, notes, and snippets.

@itswadesh
Last active March 27, 2017 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itswadesh/12d3c1ffca0432a8622f6d28d272d2d0 to your computer and use it in GitHub Desktop.
Save itswadesh/12d3c1ffca0432a8622f6d28d272d2d0 to your computer and use it in GitHub Desktop.
// Dependencies
var restful = require('node-restful');
var mongoose = restful.mongoose;
// Schema
var appointmentSchema = new mongoose.Schema({
date: Date,
name: String,
phone: String,
status: Boolean
});
// Return model
module.exports = restful.model('Appointments', appointmentSchema);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment