share_list.js 579 B

1234567891011121314151617181920212223242526
  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. owner: String, // 项目拥有者ID
  12. receiver: String, // 接收者ID
  13. allowCopy: {
  14. type: Boolean,
  15. default: false
  16. },
  17. allowCooperate: {
  18. type: Boolean,
  19. default: false
  20. },
  21. shareDate: String,
  22. updateDate: String
  23. }, {versionKey: false});
  24. mongoose.model('share_list', shareSchema, 'share_list');