awesome-compose/react-express-mongodb/backend/models/todos/todo.js
Jérémie Drouet be7f09b6ba react-express-mongodb: lint sources
to fix some syntax issues in the existing code, the commit
put in place prettier and format the code

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-13 11:33:48 +02:00

15 lines
224 B
JavaScript

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