We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72f4fad commit 7abb519Copy full SHA for 7abb519
1 file changed
charles/secrets/models/todo.model.js
@@ -0,0 +1,15 @@
1
+var mongoose = require('mongoose')
2
+var mongoosePaginate = require('mongoose-paginate')
3
+
4
5
+var ToDoSchema = new mongoose.Schema({
6
+ title: String,
7
+ description: String,
8
+ date: Date,
9
+ status: String
10
+})
11
12
+ToDoSchema.plugin(mongoosePaginate)
13
+const ToDo = mongoose.model('Todo', ToDoSchema)
14
15
+module.exports = ToDo;
0 commit comments