1234567891011121314151617181920212223242526272829303132333435 |
- /**
- * Created by Tony on 2017/7/24.
- */
- let mongoose = require('mongoose');
- let Schema = mongoose.Schema;
- let rptTplPrjSchema = new Schema({
- "ID": Number,
- "ParentID": Number,
- "NextSiblingID": Number,
- "name": String, //项目名称
- "location": String, //工程地点
- "constructor": String, //建设单位
- "supervisor": String, //监理
- "auditor": String //审核
- });
- let rptTplBillsSchema = new Schema({
- });
- let rptTplRationSchema = new Schema({
- });
- let tplPrjData = mongoose.model("projects", rptTplPrjSchema, "projects");
- let tplBillsData = mongoose.model("bills", rptTplBillsSchema, "bills");
- let tplRationData = mongoose.model("ration", rptTplRationSchema, "ration");
- module.exports = {
- prjMdl: tplPrjData,
- billsMdl: tplBillsData,
- rationMdl: tplRationData
- };
|