Permalink
Browse files

Creating the Todo model with Mongoose

  • Loading branch information...
amejiarosario committed Oct 2, 2014
1 parent d3be6a2 commit afc908027339b22f10de3b77518ac0728668d470
Showing with 9 additions and 0 deletions.
  1. +9 −0 models/Todo.js
View
@@ -0,0 +1,9 @@
+var mongoose = require('mongoose');
+
+var TodoSchema = new mongoose.Schema({
+ name: String,
+ completed: Boolean,
+ note: String
+});
+
+module.exports = mongoose.model('Todo', TodoSchema);

0 comments on commit afc9080

Please sign in to comment.