overleaf/services/web/app/coffee/models/File.coffee

16 lines
440 B
CoffeeScript
Raw Normal View History

mongoose = require 'mongoose'
2014-02-12 05:23:40 -05:00
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}
2018-02-14 10:12:46 -05:00
linkedFileData: { type: Schema.Types.Mixed }
2014-02-12 05:23:40 -05:00
mongoose.model 'File', FileSchema
exports.File = mongoose.model 'File'
exports.FileSchema = FileSchema