The goal here is to keep the same structure than the other examples. Also, considering that it has a "frontend" folder, the equivalent for the server should be "backend". Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
15 lines
222 B
JavaScript
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};
|