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.

23 lines
326 B

  1. "use strict";
  2. const modb = require('mongoose'),
  3. Promise = require('bluebird'),
  4. _ = require('lodash');
  5. /**
  6. * Region schema
  7. *
  8. * @type {<Mongoose.Schema>}
  9. */
  10. var userSchema = modb.Schema({
  11. email: {
  12. type: String,
  13. required: true
  14. }
  15. },
  16. {
  17. timestamps: {}
  18. });
  19. module.exports = modb.model('User', userSchema);