mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
01ee104f77
This reverts commit 7b05891ba0e87e4cf00fd6b1ea87d7406dc70989.
20 lines
590 B
CoffeeScript
20 lines
590 B
CoffeeScript
mongoose = require('mongoose')
|
|
Settings = require 'settings-sharelatex'
|
|
DocSchema = require('./Doc').DocSchema
|
|
FileSchema = require('./File').FileSchema
|
|
|
|
Schema = mongoose.Schema
|
|
ObjectId = Schema.ObjectId
|
|
|
|
FolderSchema = new Schema
|
|
name : {type:String, default:'new folder'}
|
|
|
|
FolderSchema.add
|
|
docs : [DocSchema]
|
|
fileRefs : [FileSchema]
|
|
folders : [FolderSchema]
|
|
|
|
|
|
mongoose.model('Folder', FolderSchema)
|
|
exports.Folder = mongoose.model('Folder')
|
|
exports.FolderSchema = FolderSchema
|