Browse Source

update ration_lib model

zhongzewei 7 years atrás
parent
commit
80bbf45c76
1 changed files with 9 additions and 1 deletions
  1. 9 1
      modules/all_models/stdRation_lib.js

+ 9 - 1
modules/all_models/stdRation_lib.js

@@ -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');