Doc.js 460 B

123456789101112131415161718
  1. /* eslint-disable
  2. no-unused-vars,
  3. */
  4. // TODO: This file was created by bulk-decaffeinate.
  5. // Fix any style issues and re-enable lint.
  6. const mongoose = require('mongoose')
  7. const Settings = require('settings-sharelatex')
  8. const { Schema } = mongoose
  9. const { ObjectId } = Schema
  10. const DocSchema = new Schema({
  11. name: { type: String, default: 'new doc' }
  12. })
  13. mongoose.model('Doc', DocSchema)
  14. exports.Doc = mongoose.model('Doc')
  15. exports.DocSchema = DocSchema