share_list.js 646 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * @Descripttion: 分享列表
  3. * @Author: Zhong
  4. * @Date: 2020-01-10 10:51:35
  5. */
  6. const mongoose = require('mongoose');
  7. const Schema = mongoose.Schema;
  8. const shareSchema = new Schema({
  9. ID: String,
  10. projectID: Number,
  11. isRead: {
  12. type: Boolean,
  13. default: false
  14. },
  15. owner: String, // 项目拥有者ID
  16. receiver: String, // 接收者ID
  17. allowCopy: {
  18. type: Boolean,
  19. default: false
  20. },
  21. allowCooperate: {
  22. type: Boolean,
  23. default: false
  24. },
  25. shareDate: String,
  26. updateDate: String
  27. }, {versionKey: false});
  28. mongoose.model('share_list', shareSchema, 'share_list');