compleRation_section.js 732 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 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: Number,
  21. NextSiblingID: Number,
  22. ParentID: Number,
  23. deleteInfo: deleteSchema
  24. }, {versionKey: false});
  25. mongoose.model('complementary_ration_section_tree', compleRationSectionTreeSchema, 'complementary_ration_section_tree');