mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 13:21:37 +02:00
Set Prettier's "trailingComma" setting to "es5" GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
22 lines
494 B
JavaScript
22 lines
494 B
JavaScript
const mongoose = require('../infrastructure/Mongoose')
|
|
const { Schema } = mongoose
|
|
|
|
const DeletedFileSchema = new Schema(
|
|
{
|
|
name: String,
|
|
projectId: Schema.ObjectId,
|
|
created: {
|
|
type: Date,
|
|
},
|
|
linkedFileData: { type: Schema.Types.Mixed },
|
|
hash: {
|
|
type: String,
|
|
},
|
|
deletedAt: { type: Date },
|
|
},
|
|
{ collection: 'deletedFiles' }
|
|
)
|
|
|
|
exports.DeletedFile = mongoose.model('DeletedFile', DeletedFileSchema)
|
|
exports.DeletedFileSchema = DeletedFileSchema
|