rpt_tpl_data.js 972 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Created by Tony on 2017/7/24.
  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 rptTplPrjSchema = new Schema({
  9. "ID": Number,
  10. "ParentID": Number,
  11. "NextSiblingID": Number,
  12. "name": String, //项目名称
  13. "location": String, //工程地点
  14. "constructor": String, //建设单位
  15. "supervisor": String, //监理
  16. "auditor": String //审核
  17. });
  18. let rptTplBillsSchema = new Schema({
  19. });
  20. let rptTplRationSchema = new Schema({
  21. });
  22. let tplPrjData = smartcostdb.model("temp_tpl_data", rptTplPrjSchema, "projects");
  23. let tplBillsData = smartcostdb.model("temp_tpl_data", rptTplBillsSchema, "bills");
  24. let tplRationData = smartcostdb.model("temp_tpl_data", rptTplRationSchema, "ration");
  25. module.exports = {
  26. prjMdl: tplPrjData,
  27. billsMdl: tplBillsData,
  28. rationMdl: tplRationData
  29. };