std_price_info_source.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // 信息价源数据(造价通接口源数据)
  2. const mongoose = require('mongoose');
  3. const Schema = mongoose.Schema;
  4. const priceInfoSourceItems = new Schema({
  5. period: { // 期数 eg: 2020-05
  6. type: String,
  7. default: ''
  8. },
  9. area: { // eg: 广东-广州市-广州市。 不拆分成province、city等多个字段,是为了后续兼容性,不同省份的地区划分可能不同
  10. type: String,
  11. default: ''
  12. },
  13. industry: {
  14. type: Number,
  15. default: 1
  16. },
  17. subcid: { // 分类编号
  18. type: String,
  19. default: ''
  20. },
  21. code: {
  22. type: String,
  23. default: ''
  24. },
  25. name: {
  26. type: String,
  27. default: ''
  28. },
  29. specs: {
  30. type: String,
  31. default: ''
  32. },
  33. unit: {
  34. type: String,
  35. default: ''
  36. },
  37. price: {
  38. type: String,
  39. default: ''
  40. },
  41. taxPrice: {
  42. type: String,
  43. default: ''
  44. },
  45. noTaxPrice: {
  46. type: String,
  47. default: ''
  48. },
  49. remark: {
  50. type: String,
  51. default: ''
  52. }
  53. }, { versionKey: false });
  54. mongoose.model('std_price_info_source', priceInfoSourceItems, 'std_price_info_source');