2021-02-17 06:40:56 -05:00
|
|
|
const mongoose = require('../infrastructure/Mongoose')
|
|
|
|
const { Schema } = mongoose
|
|
|
|
|
|
|
|
const DeletedFileSchema = new Schema(
|
|
|
|
{
|
|
|
|
name: String,
|
|
|
|
projectId: Schema.ObjectId,
|
|
|
|
created: {
|
2021-04-27 03:52:58 -04:00
|
|
|
type: Date,
|
2021-02-17 06:40:56 -05:00
|
|
|
},
|
|
|
|
linkedFileData: { type: Schema.Types.Mixed },
|
|
|
|
hash: {
|
2021-04-27 03:52:58 -04:00
|
|
|
type: String,
|
2021-02-17 06:40:56 -05:00
|
|
|
},
|
2021-04-27 03:52:58 -04:00
|
|
|
deletedAt: { type: Date },
|
2021-02-17 06:40:56 -05:00
|
|
|
},
|
2023-02-28 08:26:18 -05:00
|
|
|
{ collection: 'deletedFiles', minimize: false }
|
2021-02-17 06:40:56 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
exports.DeletedFile = mongoose.model('DeletedFile', DeletedFileSchema)
|
|
|
|
exports.DeletedFileSchema = DeletedFileSchema
|