Skip to content
Snippets Groups Projects
Commit 1cb210ae authored by Jesus Galaz's avatar Jesus Galaz
Browse files

Adding missing content

parent 8b59600d
No related branches found
No related tags found
1 merge request!5User authentication implemented
const mongoose = require('mongoose');
const TodoSchema = new mongoose.Schema({
description: { type: String, required: true },
isDone: { type: Boolean, default: false },
userId: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true }
});
module.exports = mongoose.model('Todo', TodoSchema);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment