| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 | 
							- /**
 
-  * 具体单价数据结构
 
-  *
 
-  * @author CaiAoLin
 
-  * @date 2017/6/29
 
-  * @version
 
-  */
 
- import mongoose from "mongoose";
 
- let Schema = mongoose.Schema;
 
- let collectionName = 'unit_price';
 
- let modelSchema = {
 
-     // 自增ID
 
-     id: Number,
 
-     // 基价单价
 
-     base_price: String,
 
-     // 市场单价
 
-     market_price: String,
 
-     // 编码
 
-     code: {
 
-         type: String,
 
-         index: true
 
-     },
 
-     //原始的编码
 
-     original_code: {
 
-         type: String,
 
-         index: true
 
-     },
 
-     // 名称
 
-     name: {
 
-         type: String,
 
-         index: true
 
-     },
 
-     // 规格型号
 
-     specs: {
 
-         type: String,
 
-         default: ''
 
-     },
 
-     // 单位
 
-     unit: String,
 
-     // 类型
 
-     type: Number,
 
-     // 类型简称
 
-     short_name: String,
 
-     // 单价文件表id
 
-     unit_price_file_id: Number,
 
-     // 对应标准库工料机id
 
-     glj_id: Number,
 
-     //是否新增1为是,0为否
 
-     is_add:{
 
-         type: Number,
 
-         default: 0
 
-     }
 
- };
 
- mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));
 
 
  |