Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mongoose = require("mongoose");
- var Schema = mongoose.Schema;
- var todoSchema = new Schema({
- title: String,
- date: String,
- completed: String,
- });
- module.exports = mongoose.model("todo", todoSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement