feedback-message.js 814 B

123456789101112131415161718192021
  1. var mongoose = require('mongoose');
  2. var Schema = mongoose.Schema;
  3. var FeedbackMessageSchema = new Schema(
  4. {
  5. category: {type: String, required: true, maxLength: 20},
  6. name: {type: String, required: false, maxLength: 100},
  7. email: {type: String, required: false, maxLength: 100},
  8. created: { type: Date, default: Date.now(), immutable: true },
  9. subject: {type: String, required: false, maxLength: 100},
  10. message: {type: String, required: false},
  11. topic: {type: String, required: false, maxLength: 100},
  12. game: {type: String, required: false, maxLength: 100},
  13. platform: {type: String, required: false, maxLength: 100},
  14. game_version: {type: String, required: false, maxLength: 100},
  15. }
  16. );
  17. //Export model
  18. module.exports = mongoose.model('FeedbackMessage', FeedbackMessageSchema);