product.js 597 B

12345678910111213141516171819202122232425262728293031
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Zhong
  6. * @date 2019/3/21
  7. * @version
  8. */
  9. /*
  10. * 与产品绑定的信息都可以在此设置
  11. * */
  12. const mongoose = require('mongoose');
  13. const Schema = mongoose.Schema;
  14. const productSchema = new Schema({
  15. name: {
  16. type: String,
  17. default: '纵横建筑计价'
  18. },
  19. company: {
  20. type: String,
  21. default: '珠海纵横创新软件有限公司'
  22. },
  23. icp: {
  24. type: String,
  25. default: '粤ICP备14032472号'
  26. },
  27. version: String
  28. }, {versionKey: false});
  29. mongoose.model('product', productSchema, 'product');