mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
07b7566466
compute filestore hash GitOrigin-RevId: 23a909d2c2ea7aba3abfdb8f0c060e414a17e52e
16 lines
466 B
CoffeeScript
16 lines
466 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 }
|
|
hash : type:String
|
|
|
|
mongoose.model 'File', FileSchema
|
|
exports.File = mongoose.model 'File'
|
|
exports.FileSchema = FileSchema
|