old_contents: const mongoose = require("mongoose");
  
  const Schema = mongoose.Schema;
  const ObjectId = Schema.ObjectId;
  
  const url = "mongodb://localhost:27017/todo";
  
  const User = new Schema({
  	username: String,
  	password: String,
  	salt: String,
  	items: [ObjectId]
  });
  
  const Item = new Schema({
  	heading: String,
  	body: String,
  	done: Boolean
  });
  
  mongoose.createConnection(url);
  
  process.on("SIGINT", () => {
  	mongoose.connection.close(() => {
  		console.log("Mongoose connection closed");
  		process.exit(0);
  	});
  });
  
  
new_contents: const mongoose = require("mongoose");
  
  const Schema = mongoose.Schema;
  const ObjectId = Schema.ObjectId;
  
  const url = "mongodb://localhost:27017/todo";
  
  const User = new Schema({
  	username: String,
  	password: String,
  	items: [ObjectId]
  });
  
  const Item = new Schema({
  	heading: String,
  	body: String,
  	done: Boolean
  });
  
  mongoose.createConnection(url);
  
  process.on("SIGINT", () => {
  	mongoose.connection.close(() => {
  		console.log("Mongoose connection closed");
  		process.exit(0);
  	});
  });
  
  
subject: Update schema to work with password controller