mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
15 lines
440 B
CoffeeScript
15 lines
440 B
CoffeeScript
mongoose = require 'mongoose'
|
|
Settings = require 'settings-sharelatex'
|
|
|
|
Schema = mongoose.Schema
|
|
ObjectId = Schema.ObjectId
|
|
|
|
FileSchema = new Schema
|
|
name : type:String, default:''
|
|
created : type:Date, default: () -> new Date()
|
|
rev : {type:Number, default:0}
|
|
linkedFileData: { type: Schema.Types.Mixed }
|
|
|
|
mongoose.model 'File', FileSchema
|
|
exports.File = mongoose.model 'File'
|
|
exports.FileSchema = FileSchema
|