options.js 358 B

12345678910111213141516
  1. /**
  2. * Created by Zhong on 2018/3/22.
  3. */
  4. /*选项*/
  5. const mongoose = require('mongoose');
  6. const Schema = mongoose.Schema;
  7. const optionSchema = new Schema({
  8. user_id: String,
  9. compilation_id: String,
  10. options: {
  11. type: Schema.Types.Mixed,
  12. default: {}
  13. }
  14. }, {versionKey: false});
  15. mongoose.model('options', optionSchema, 'options');