@@ -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');
@@ -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');
@@ -14,7 +14,7 @@ const priceInfoItems = new Schema({
noTaxPrice: String, // 不含税价格
// 以下冗余数据为方便前台信息价功能处理
period: String, // 期数 eg: 2020-05
- area: String, // 地区
+ areaID: String, // 地区
compilationID: String, // 费用定额
remark: String
@@ -6,10 +6,6 @@ const priceInfoLib = new Schema({
ID: String,
- areas: { // 地区
- type: Array,
- default: []
- },
compilationID: String,
createDate: Number,