stdRation_installSection.js 724 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Created by Zhong on 2018/3/22.
  3. */
  4. /*标准定额库-安装分册章节*/
  5. const mongoose = require('mongoose');
  6. const Schema = mongoose.Schema;
  7. //安装增加费-费用规则
  8. const feeRuleSchema = new Schema({
  9. ID: String,
  10. code: String,
  11. rule: String,
  12. base: String,
  13. feeRate: Number,
  14. labour: Number,
  15. material: Number,
  16. machine: Number
  17. });
  18. //标准安装增加费-分册章节
  19. const installSectionSchema = new Schema({
  20. rationRepId: Number,
  21. ID: String,
  22. feeItemId: String,
  23. name: String,
  24. feeRule: [feeRuleSchema],
  25. deleted: false
  26. }, {versionKey: false});
  27. mongoose.model('std_ration_lib_installationSection', installSectionSchema, 'std_ration_lib_installationSection');