be7f09b6ba
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>
15 lines
224 B
JavaScript
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};
|