123456789101112131415161718 |
- 'use strict';
- module.exports = app => {
- const mongoose = app.mongoose;
- const Schema = mongoose.Schema;
- const FeedbackSchema = new Schema({
- userid: {
- type: Schema.Types.ObjectId,
- ref: 'sysUser',
- },
- userName: { type: String }, // 采集员
- content: { type: String }, // 内容
- time: { type: Date, default: Date.now },
- });
- return mongoose.model('Feedback', FeedbackSchema, 'feedback');
- };
|