awesome-compose/react-express-mongodb/server/models/todos/todo.model.js
Afzal a1153cea42 Sample React-Express-MongoDB
Signed-off-by: Afzal <sah.afzal@gmail.com>
2020-05-12 00:20:38 +05:00

15 lines
222 B
JavaScript

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