mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 03:41:12 +00:00
13 lines
372 B
CoffeeScript
13 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)
|