mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 16:51:18 +00:00
9a7c8c5842
This reverts commit ab6b4c32254a20b940c489b8b5b56237433cc0f6.
17 lines
536 B
CoffeeScript
17 lines
536 B
CoffeeScript
Settings = require "settings-sharelatex"
|
|
mongoose = require('mongoose')
|
|
Schema = mongoose.Schema
|
|
ObjectId = Schema.ObjectId
|
|
|
|
UserStubSchema = new Schema
|
|
email : { type : String, default : '' }
|
|
first_name : { type : String, default : '' }
|
|
last_name : { type : String, default : '' }
|
|
overleaf : { id: { type: Number } }
|
|
|
|
conn = mongoose.createConnection(Settings.mongo.url, server: poolSize: 10)
|
|
|
|
UserStub = conn.model('UserStub', UserStubSchema)
|
|
|
|
model = mongoose.model 'UserStub', UserStubSchema
|
|
exports.UserStub = UserStub
|