rpt_tpl_data.js 836 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * Created by Tony on 2017/7/24.
  3. */
  4. let mongoose = require('mongoose');
  5. let Schema = mongoose.Schema;
  6. let rptTplPrjSchema = new Schema({
  7. "ID": Number,
  8. "ParentID": Number,
  9. "NextSiblingID": Number,
  10. "name": String, //项目名称
  11. "location": String, //工程地点
  12. "constructor": String, //建设单位
  13. "supervisor": String, //监理
  14. "auditor": String //审核
  15. });
  16. let rptTplBillsSchema = new Schema({
  17. });
  18. let rptTplRationSchema = new Schema({
  19. });
  20. let tplPrjData = mongoose.model("projects", rptTplPrjSchema, "projects");
  21. let tplBillsData = mongoose.model("bills", rptTplBillsSchema, "bills");
  22. let tplRationData = mongoose.model("ration", rptTplRationSchema, "ration");
  23. module.exports = {
  24. prjMdl: tplPrjData,
  25. billsMdl: tplBillsData,
  26. rationMdl: tplRationData
  27. };