system_setting.js 856 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * Created by zhang on 2020/1/2.
  3. */
  4. let mongoose = require("mongoose");
  5. let Schema = mongoose.Schema;
  6. let collectionName = 'system_setting';
  7. let modelSchema = {
  8. // ID
  9. ID: {
  10. type: String,
  11. index: true
  12. },
  13. // 专业用户
  14. professional: {
  15. project: Number,
  16. ration:Number
  17. },
  18. // 免费用户
  19. normal: {
  20. project: Number,
  21. ration:Number
  22. },
  23. company: String, // 软件供应商
  24. product: String, // 产品名
  25. version: String, // 计算版本号(原本叫版本号,需要兼容旧的处理所以还是叫version)
  26. dskVersion: String, // 大司空显示版本号
  27. platformVersion: String, // 平台显示版本号
  28. updateDate: String, // 更新日期
  29. };
  30. mongoose.model(collectionName, new Schema(modelSchema, {versionKey: false, collection: collectionName}));