event.js 511 B

12345678910111213141516
  1. var bcrypt = require('bcrypt-nodejs');
  2. var crypto = require('crypto');
  3. var mongoose = require('mongoose');
  4. var eventSchema = new mongoose.Schema({
  5. event: {
  6. eventname: { type: String, default: '' },
  7. eventdesc: { type: String, default: '' },
  8. eventopendate: { type: String, default: '' },
  9. eventenddate: { type: String, default: '' },
  10. registrationtype: { type: String, default: '' },
  11. jurytype: { type: String, default: '' },
  12. }
  13. });
  14. module.exports = mongoose.model('Event', eventSchema);