Last active
March 27, 2017 14:49
-
-
Save itswadesh/12d3c1ffca0432a8622f6d28d272d2d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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