overleaf/services/web/app/coffee/models/SystemMessage.coffee
2017-05-08 16:09:59 +01:00

12 lines
390 B
CoffeeScript

mongoose = require '../infrastructure/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)