std_price_info_items.js 949 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // 信息价数据
  2. const mongoose = require('mongoose');
  3. const Schema = mongoose.Schema;
  4. const priceInfoItems = new Schema({
  5. ID: String,
  6. libID: String,
  7. classID: String, // 分类
  8. code: {
  9. type: String,
  10. default: ''
  11. },
  12. name: {
  13. type: String,
  14. default: ''
  15. },
  16. specs: {
  17. type: String,
  18. default: ''
  19. },
  20. unit: {
  21. type: String,
  22. default: ''
  23. },
  24. taxPrice: {
  25. type: String,
  26. default: ''
  27. }, // 含税价格
  28. noTaxPrice: {
  29. type: String,
  30. default: ''
  31. }, // 不含税价格
  32. // 以下冗余数据为方便前台信息价功能处理
  33. period: String, // 期数 eg: 2020-05
  34. areaID: String, // 地区
  35. compilationID: String, // 费用定额
  36. remark: {
  37. type: String,
  38. default: ''
  39. }
  40. }, { versionKey: false });
  41. mongoose.model('std_price_info_items', priceInfoItems, 'std_price_info_items');