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);
	});
});


@@ -214,23 +214,8 @@
 ng,%0A
-%09salt: String,%0A
 %09ite

Update schema to work with password controller