rpt_template.js 825 B

12345678910111213141516171819202122232425
  1. /**
  2. * Created by Tony on 2016/12/23.
  3. */
  4. let mongoose = require('mongoose');
  5. let dbm = require("../../../config/db/db_manager");
  6. let smartcostdb = dbm.getCfgConnection("scConstruct");
  7. let Schema = mongoose.Schema;
  8. let RptTemplateSchema = new Schema({
  9. "ID" : Number,
  10. "GROUP_KEY": String,
  11. "ID_KEY": String,
  12. "主信息": Schema.Types.Mixed,
  13. "指标_数据_映射": Schema.Types.Mixed,
  14. "布局框_集合": Array,
  15. "流水式表_信息": Schema.Types.Mixed,
  16. "账单式表_信息": Schema.Types.Mixed,
  17. "交叉表_信息": Schema.Types.Mixed,
  18. "无映射离散指标_集合": Schema.Types.Mixed,
  19. "离散参数_集合": Schema.Types.Mixed,
  20. "计算式_集合": Array
  21. });
  22. let Template = smartcostdb.model("rpt_templates", RptTemplateSchema, "rpt_templates");
  23. module.exports = Template;