del
This commit is contained in:
parent
9bdfd286fa
commit
8762fc41c5
1 changed files with 0 additions and 10 deletions
|
@ -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);
|
|
Loading…
Add table
Add a link
Reference in a new issue