|
@@ -4,13 +4,21 @@
|
|
|
/*标准定额库*/
|
|
|
const mongoose = require('mongoose');
|
|
|
const Schema = mongoose.Schema;
|
|
|
+const oprSchema = require('../all_schemas/opr_schema');
|
|
|
const RepositoryMapSchema = new Schema({
|
|
|
"ID": Number,
|
|
|
"dispName" : String,
|
|
|
"appType" : String, //如:"建筑" / "公路"
|
|
|
"localeType": String, //如 各个省份 / 部颁
|
|
|
"descr" : String,
|
|
|
- "deleted": Boolean
|
|
|
+ "deleted": Boolean,
|
|
|
+ compilationId: String,
|
|
|
+ compilationName: String,
|
|
|
+ gljLib: Number,
|
|
|
+ creator: String,
|
|
|
+ createDate: String,
|
|
|
+ recentOpr: [oprSchema]
|
|
|
+
|
|
|
});
|
|
|
|
|
|
mongoose.model('std_ration_lib_map', RepositoryMapSchema, 'std_ration_lib_map');
|