mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 21:01:33 +02:00
16 lines
425 B
JavaScript
16 lines
425 B
JavaScript
const mongoose = require('mongoose')
|
|
const Settings = require('settings-sharelatex')
|
|
|
|
const { Schema } = mongoose
|
|
|
|
const SystemMessageSchema = new Schema({
|
|
content: { type: String, default: '' }
|
|
})
|
|
|
|
const conn = mongoose.createConnection(Settings.mongo.url, {
|
|
server: { poolSize: Settings.mongo.poolSize || 10 },
|
|
config: { autoIndex: false }
|
|
})
|
|
|
|
exports.SystemMessage = conn.model('SystemMessage', SystemMessageSchema)
|