123456789101112131415161718 |
- /**
- * Created by Zhong on 2017/9/28.
- */
- import mongoose from 'mongoose';
- /*
- * 此选项设置针对绑定用户,对用户该编办下所有项目有效的全局选项
- * */
- let Schema = mongoose.Schema;
- let optionSchema = new Schema({
- user_id: String,
- compilation_id: String,
- options: Array
- }, {versionKey: false});
- let optionsModel = mongoose.model('options', optionSchema);
- export default optionsModel;
|