Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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
You can’t perform that action at this time.