This commit is contained in:
joewaa 2017-06-10 23:29:06 +08:00 committed by GitHub
parent 9bdfd286fa
commit 8762fc41c5

View file

@ -1,10 +0,0 @@
var monngoose = require('mongoose');
var Schema = mongoose.Schema;
var TaskSchema = new Schema({
name: { type: String, Required: 'Kindly enter the name of the task'},
Created_date: {type: Date, default: Date.now},
status: { type:['pending','ongoing','completed'],default:['pending']}
});
module.exports = mongoose.model('Task',TaskSchema);