Configuration.js 658 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. 'use strict';
  2. module.exports = app => {
  3. const { mongoose } = app;
  4. const { Schema } = mongoose;
  5. const ConfigurationSchema = new Schema({
  6. // 名称
  7. name: {
  8. type: String,
  9. },
  10. // 描述
  11. describe: {
  12. type: String,
  13. },
  14. // 单位
  15. company: {
  16. type: String,
  17. },
  18. // 电话
  19. phone: {
  20. type: String,
  21. },
  22. // 地址
  23. address: {
  24. type: String,
  25. },
  26. // 邮箱
  27. mail: {
  28. type: String,
  29. },
  30. // 邮编
  31. postcode: {
  32. type: String,
  33. },
  34. // 备案号
  35. record: {
  36. type: String,
  37. },
  38. });
  39. return mongoose.model('Configuration', ConfigurationSchema);
  40. };