1 files added
1 files modified
New file |
| | |
| | | { |
| | | // Use IntelliSense to learn about possible attributes. |
| | | // Hover to view descriptions of existing attributes. |
| | | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| | | "version": "0.2.0", |
| | | "configurations": [ |
| | | { |
| | | "type": "node", |
| | | "request": "launch", |
| | | "name": "Launch via NPM", |
| | | "runtimeExecutable": "npm", |
| | | "runtimeArgs": [ |
| | | "run-script", |
| | | "start" |
| | | ], |
| | | "port": 9229 |
| | | }, |
| | | { |
| | | "type": "node", |
| | | "request": "launch", |
| | | "name": "Launch Program", |
| | | "program": "${workspaceFolder}/server/app.js" |
| | | } |
| | | ] |
| | | } |
| | |
| | | |
| | | const TodoSchema = new Schema({ |
| | | title: String, |
| | | completed: Boolean |
| | | completed: Boolean, |
| | | important: Boolean |
| | | }); |
| | | |
| | | module.exports = mongoose.model('Todo', TodoSchema); |