stdRation_lib.js 696 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Created by Zhong on 2018/3/22.
  3. */
  4. /*标准定额库*/
  5. const mongoose = require('mongoose');
  6. const Schema = mongoose.Schema;
  7. const oprSchema = require('../all_schemas/opr_schema');
  8. const RepositoryMapSchema = new Schema({
  9. "ID": Number,
  10. "dispName": String,
  11. "appType": String, //如:"建筑" / "公路"
  12. "localeType": String, //如 各个省份 / 部颁
  13. "descr": String,
  14. "deleted": Boolean,
  15. code: String,
  16. shortName: String,
  17. compilationId: String,
  18. compilationName: String,
  19. gljLib: Number,
  20. creator: String,
  21. createDate: String,
  22. recentOpr: [oprSchema]
  23. });
  24. mongoose.model('std_ration_lib_map', RepositoryMapSchema, 'std_ration_lib_map');