mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-30 21:30:49 +00:00
14 lines
394 B
CoffeeScript
14 lines
394 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}
|
|
|
|
mongoose.model 'File', FileSchema
|
|
exports.File = mongoose.model 'File'
|
|
exports.FileSchema = FileSchema
|