Sfoglia il codice sorgente

信息价库表结构变更

vian 4 anni fa
parent
commit
7237cafc50

+ 10 - 0
modules/all_models/std_price_info_areas.js

@@ -0,0 +1,10 @@
+// 信息价地区(一个费用定额共用地区)
+const mongoose = require('mongoose');
+
+const Schema = mongoose.Schema;
+const priceInfoArea = new Schema({
+    ID: String,
+    compilationID: String,
+    name: String
+}, {versionKey: false});
+mongoose.model('std_price_info_areas', priceInfoArea, 'std_price_info_areas');

+ 1 - 1
modules/all_models/std_price_info_class.js

@@ -7,7 +7,7 @@ const priceInfoClass = new Schema({
     ParentID: String,
     NextSiblingID: String,
     name: String,
-    area: String,
+    areaID: String,
     libID: String
 }, {versionKey: false});
 mongoose.model('std_price_info_class', priceInfoClass, 'std_price_info_class');

+ 1 - 1
modules/all_models/std_price_info_items.js

@@ -14,7 +14,7 @@ const priceInfoItems = new Schema({
     noTaxPrice: String, // 不含税价格
     // 以下冗余数据为方便前台信息价功能处理
     period: String, // 期数 eg: 2020-05
-    area: String, // 地区
+    areaID: String, // 地区
     compilationID: String, // 费用定额
     remark: String
 }, {versionKey: false});

+ 0 - 4
modules/all_models/std_price_info_lib.js

@@ -6,10 +6,6 @@ const priceInfoLib = new Schema({
     ID: String,
     name: String,
     period: String, // 期数 eg: 2020-05
-    areas: { // 地区
-        type: Array,
-        default: []
-    },
     compilationID: String,
     createDate: Number,
 }, {versionKey: false});