compleRation_section.js 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * Created by Zhong on 2018/3/22.
  3. */
  4. /*补充定额库-章节树*/
  5. const mongoose = require('mongoose');
  6. const Schema = mongoose.Schema;
  7. const deleteSchema = require('../all_schemas/delete_schema');
  8. //补充定额章节树
  9. const compleRationSectionTreeSchema = new Schema({
  10. //用户名
  11. userId: String,
  12. //编办
  13. compilationId: String,
  14. //标准定额库
  15. //rationRepId: Number,
  16. //名称
  17. name: String,
  18. //是否是同层第一个节点
  19. // isFirst: Boolean,
  20. ID: String,
  21. NextSiblingID: String,
  22. ParentID: String,
  23. deleteInfo: deleteSchema,
  24. //以下预留数据,以后开放可用
  25. explanation: String,//说明
  26. ruleText: String,//计算规则,
  27. jobContentSituation: String,//工作内容适用情况,ALL适用本项全部定额,PARTIAL适用本项部分定额
  28. annotationSituation: String,//附注适用情况,ALL适用本项全部定额,PARTIAL适用本项部分定额
  29. }, {versionKey: false});
  30. mongoose.model('complementary_ration_section_tree', compleRationSectionTreeSchema, 'complementary_ration_section_tree');