compleRation_installSection.js 899 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Zhong
  6. * @date 2018/10/23
  7. * @version
  8. */
  9. /*
  10. * 补充定额库用户新增安装增加费分册章节
  11. *
  12. *
  13. * */
  14. const mongoose = require('mongoose');
  15. const Schema = mongoose.Schema;
  16. const deleteSchema = require('../all_schemas/delete_schema');
  17. //安装增加费-费用规则
  18. const feeRuleSchema = new Schema({
  19. ID: String,
  20. code: String,
  21. rule: String,
  22. base: String,
  23. feeRate: Number,
  24. labour: Number,
  25. material: Number,
  26. machine: Number
  27. });
  28. //补充安装增加费-分册章节
  29. const installSectionSchema = new Schema({
  30. userId: String,
  31. compilationId: String,
  32. ID: String,
  33. feeItemId: String,
  34. name: String,
  35. feeRule: [feeRuleSchema],
  36. deleteInfo: deleteSchema
  37. }, {versionKey: false});
  38. mongoose.model('complementary_ration_installationSection', installSectionSchema, 'complementary_ration_installationSection');