operationManualModel.js 359 B

1234567891011121314
  1. 'use strict';
  2. module.exports = app => {
  3. const mongoose = app.mongoose;
  4. const Schema = mongoose.Schema;
  5. const OperationManualSchema = new Schema({
  6. fileName: { type: String },
  7. filePath: { type: String },
  8. time: { type: Date, default: Date.now },
  9. });
  10. return mongoose.model('OperationManual', OperationManualSchema, 'operationManual');
  11. };