| 123456789101112131415161718192021222324252627282930313233343536373839 | 
							- /**
 
-  * 单价文件数据结构
 
-  *
 
-  * @author CaiAoLin
 
-  * @date 2017/6/29
 
-  * @version
 
-  */
 
- import mongoose from "mongoose";
 
- let Schema = mongoose.Schema;
 
- let collectionName = 'unit_price';
 
- let modelSchema = {
 
-     // 自增ID
 
-     id: Number,
 
-     // 项目id
 
-     project_id: Number,
 
-     // 标段id
 
-     tender_id: Number,
 
-     // 基价单价
 
-     base_price: String,
 
-     // 市场单价
 
-     market_price: String,
 
-     // 编码
 
-     code: String,
 
-     // 名称
 
-     name: String,
 
-     // 规格型号
 
-     specs: {
 
-         type: String,
 
-         default: ''
 
-     },
 
-     // 单位
 
-     unit: String,
 
-     // 类型
 
-     type: Number,
 
- };
 
- let model = mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));
 
- export {model as default, collectionName as collectionName};
 
 
  |