{"size": 390, "ext": "js", "max_stars_repo_path": "mn-server/models/counterSchema.js", "max_stars_repo_name": "kernelogic/musicnft_pub", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "mn-server/models/counterSchema.js", "max_issues_repo_name": "kernelogic/musicnft_pub", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "mn-server/models/counterSchema.js", "max_forks_repo_name": "kernelogic/musicnft_pub", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.9411764706, "max_line_length": 85, "alphanum_fraction": 0.6743589744}
/**
 * Maintain user ID auto increment
 * 
 * Please insert one doc first before using, or Counter.findOneAndUpdate will be null
 * 
 * {
 *      _id: 'userId',
 *      sequence_value: 1000001
 * }
 */
const mongoose = require('mongoose')
const userSchema = mongoose.Schema({
    _id: String,
    sequence_value: Number
})

module.exports = mongoose.model("counter", userSchema, "counters")