Sample React-Express-MongoDB (#59)

Signed-off-by: Afzal <sah.afzal@gmail.com>
This commit is contained in:
Syed Afzal authored and GitHub committed 2020-05-11 21:40:39 +02:00
1 parent 3599a2e685
commit 2f750eb4f7
43 files changed
+18779

No files matched your search

@@ -0,0 +1,14 @@
/**
* Created by Syed Afzal
*/
const mongoose = require('mongoose');
var Todo = mongoose.model('Todo', {
text : {
type: String,
trim: true,
required: true
}
});
module.exports = {Todo};