/**
 * Created by Zhong on 2018/3/22.
 */
/*标准定额章节树*/
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const rationChapterTreeSchema = new Schema({//章节树  //生成唯一id改为sectionID  改成string
    rationRepId: Number,
    ID:{type: Number,index: true},
    ParentID:Number,
    NextSiblingID:Number,
    name: String,
    explanation: String,//说明
    ruleText: String,//计算规则,
    jobContentSituation: String,//工作内容适用情况,ALL适用本项全部定额，PARTIAL适用本项部分定额
    annotationSituation: String,//附注适用情况,ALL适用本项全部定额，PARTIAL适用本项部分定额
    isDeleted: Boolean
});

mongoose.model("std_ration_lib_ration_chapter_trees", rationChapterTreeSchema, 'std_ration_lib_ration_chapter_trees');