Last active
January 1, 2016 11:59
-
-
Save mockra/8141793 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
var mongoose = require('mongoose'); | |
var todoSchema = new mongoose.Schema({ | |
title: { type: String, required: true }, | |
is_completed: Boolean | |
}); | |
module.exports = mongoose.model('Todo', todoSchema); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment