mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 05:13:49 +00:00
14 lines
301 B
CoffeeScript
14 lines
301 B
CoffeeScript
|
mongoose = require 'mongoose'
|
||
|
Settings = require 'settings-sharelatex'
|
||
|
|
||
|
Schema = mongoose.Schema
|
||
|
ObjectId = Schema.ObjectId
|
||
|
|
||
|
DocSchema = new Schema
|
||
|
name : {type:String, default:'new doc'}
|
||
|
|
||
|
|
||
|
mongoose.model 'Doc', DocSchema
|
||
|
exports.Doc = mongoose.model 'Doc'
|
||
|
exports.DocSchema = DocSchema
|