feedbackModel.js 431 B

123456789101112131415161718
  1. 'use strict';
  2. module.exports = app => {
  3. const mongoose = app.mongoose;
  4. const Schema = mongoose.Schema;
  5. const FeedbackSchema = new Schema({
  6. userid: {
  7. type: Schema.Types.ObjectId,
  8. ref: 'sysUser',
  9. },
  10. userName: { type: String }, // 采集员
  11. content: { type: String }, // 内容
  12. time: { type: Date, default: Date.now },
  13. });
  14. return mongoose.model('Feedback', FeedbackSchema, 'feedback');
  15. };