You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
403 B

const mongoose = require('mongoose');
const Schema = mongoose.Schema;
let User =
new Schema(
{
Hash: {type: String, required: false, max: 100},
eHash: {type:String, required: true,},
leagueName: {type:String, required:true}
}
);
const U = module.exports = mongoose.model('user', User);
module.exports.get = (callback, limit)=>
{
U.find(callback).limit(limit);
}