main_col_lib.js 848 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * Created by zhang on 2018/7/14.
  3. */
  4. //列设置库
  5. const mongoose = require('mongoose');
  6. const Schema = mongoose.Schema;
  7. const oprSchema = require('../all_schemas/opr_schema');
  8. const main_col_lib = new Schema({
  9. ID:{type:String,index:true},
  10. main_tree_col: {
  11. type: Schema.Types.Mixed,
  12. default: {
  13. emptyRows: 3,
  14. headRows: 0,
  15. treeCol: 0,
  16. headRowHeight: [],
  17. cols:[]
  18. }
  19. },
  20. creator: String,
  21. createDate: Number,
  22. recentOpr: [oprSchema],
  23. name: String,
  24. compilationId: String,
  25. compilationName: String,
  26. deleted: Boolean
  27. }, {versionKey: false}
  28. );
  29. mongoose.model("std_main_col_lib", main_col_lib,"std_main_col_lib");