{"size": 381, "ext": "js", "max_stars_repo_path": "components/searchList/searchList.model.js", "max_stars_repo_name": "firnasscn/ui_be", "max_stars_repo_stars_event_min_datetime": "2022-03-08T23:58:21.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-08T23:58:21.000Z", "max_issues_repo_path": "components/searchList/searchList.model.js", "max_issues_repo_name": "firnasscn/ui_be", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "components/searchList/searchList.model.js", "max_forks_repo_name": "firnasscn/ui_be", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.8125, "max_line_length": 58, "alphanum_fraction": 0.6614173228}
const mongoose = require('mongoose');
const autoPopulate = require('mongoose-autopopulate');

const searchList = new mongoose.Schema({
    userId: {
        type: mongoose.Schema.ObjectId,
        ref: 'users'
    },
    searchName: {
        type: String
    }
}, { timestamps: true }
);

searchList.plugin(autoPopulate);
module.exports = mongoose.model('searchlist', searchList);