overleaf/services/web/app/coffee/models/SystemMessage.coffee
Shane Kilkelly 01ee104f77 Revert "update to newest mongoose"
This reverts commit 7b05891ba0e87e4cf00fd6b1ea87d7406dc70989.
2017-05-10 15:31:17 +01:00

12 lines
372 B
CoffeeScript

mongoose = require 'mongoose'
Settings = require 'settings-sharelatex'
Schema = mongoose.Schema
ObjectId = Schema.ObjectId
SystemMessageSchema = new Schema
content : type: String, default:''
conn = mongoose.createConnection(Settings.mongo.url, server: poolSize: Settings.mongo.poolSize || 10)
exports.SystemMessage = conn.model('SystemMessage', SystemMessageSchema)