ToDo title (a String) text (a String)
Change "views/defs" to "views/todos"
Rename Files
{--
In /models change:
"def.js" to "todo.js"
"def-seeder" to "todo-seeder"
In /middlewares change:
defs-middleware.js
to
todos-middleware.js
--}
First let us change the schema in "todo.js" it is "title" and "text" and the scema is "ToDo" rather than "Def"