proj_setting.js 516 B

1234567891011121314151617181920
  1. /**
  2. * Created by Mai on 2017/9/14.
  3. */
  4. let mongoose = require("mongoose");
  5. let Schema = mongoose.Schema;
  6. let collectionName = 'proj_setting';
  7. let projSettingSchema = {
  8. projectID: Number,
  9. // 列设置
  10. main_tree_col: {
  11. type: Schema.Types.Mixed,
  12. default: {}
  13. },
  14. //设置人材机显示列
  15. glj_col:{
  16. showAdjustPrice:Boolean//是否显示调整价列
  17. }
  18. };
  19. mongoose.model(collectionName, new Schema(projSettingSchema, {versionKey: false, collection: collectionName}));