'use strict';

var mongoose = require('mongoose');
var Schema = mongoose.Schema;


var user = new Schema({
  name: {
    type: String,
    required: 'Enter username'
  },
  points: {
    type: Number,
    default: 0
  }
});

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