{"size": 438, "ext": "js", "max_stars_repo_path": "models/lostPassword.js", "max_stars_repo_name": "jaymemaurice/node-red-alexa-home-skill-web", "max_stars_repo_stars_event_min_datetime": "2018-09-24T07:07:37.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-03T00:07:45.000Z", "max_issues_repo_path": "models/lostPassword.js", "max_issues_repo_name": "jaymemaurice/node-red-alexa-home-skill-web", "max_issues_repo_issues_event_min_datetime": "2018-10-30T21:16:33.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-20T11:23:53.000Z", "max_forks_repo_path": "models/lostPassword.js", "max_forks_repo_name": "jaymemaurice/node-red-alexa-home-skill-web", "max_forks_repo_forks_event_min_datetime": "2016-11-14T21:21:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-27T14:04:12.000Z"}
{"max_stars_count": 47, "max_issues_count": 152, "max_forks_count": 23, "avg_line_length": 29.2, "max_line_length": 74, "alphanum_fraction": 0.6803652968}
var uid = require('uid2');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var LostPassword = new Schema({
	uuid: { type: String, unique: true, required: true, default: function() {
		return uid(42);
	}},
	user: { type: Schema.Types.ObjectId, ref: 'Account' },
	createdDate: { type: Date, expires: 86400 , default: function(){
		return new Date();
	}}
});

module.exports = mongoose.model('LostPassword', LostPassword);