Configuration.js 846 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. 'use strict';
  2. module.exports = app => {
  3. const { mongoose } = app;
  4. const { Schema } = mongoose;
  5. const ConfigurationSchema = new Schema({
  6. // 本期封面
  7. path: {
  8. type: String,
  9. },
  10. // 名称
  11. name: {
  12. type: String,
  13. },
  14. // 描述
  15. describe: {
  16. type: String,
  17. },
  18. // 单位
  19. company: {
  20. type: String,
  21. },
  22. // 电话
  23. phone: {
  24. type: String,
  25. },
  26. // 地址
  27. address: {
  28. type: String,
  29. },
  30. // 邮箱
  31. mail: {
  32. type: String,
  33. },
  34. // 邮编
  35. postcode: {
  36. type: String,
  37. },
  38. // 备案号
  39. record: {
  40. type: String,
  41. },
  42. // 是否显示弹窗
  43. isshow: {
  44. type: Boolean,
  45. },
  46. // 弹窗文字
  47. isname: {
  48. type: String,
  49. },
  50. });
  51. return mongoose.model('Configuration', ConfigurationSchema);
  52. };