mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 00:29:04 +02:00
73c327ae01
Upgrade Mongoose and the Mongo driver in web GitOrigin-RevId: 2cad1aabe57eae424a9e4c68b2e0062f0e78ffaf
23 lines
604 B
JavaScript
23 lines
604 B
JavaScript
const mongoose = require('../infrastructure/Mongoose')
|
|
const { Schema } = mongoose
|
|
|
|
const ProjectAuditLogEntrySchema = new Schema(
|
|
{
|
|
projectId: { type: Schema.Types.ObjectId, index: true },
|
|
operation: { type: String },
|
|
initiatorId: { type: Schema.Types.ObjectId },
|
|
timestamp: { type: Date, default: Date.now },
|
|
info: { type: Object },
|
|
},
|
|
{
|
|
collection: 'projectAuditLogEntries',
|
|
minimize: false,
|
|
}
|
|
)
|
|
|
|
exports.ProjectAuditLogEntry = mongoose.model(
|
|
'ProjectAuditLogEntry',
|
|
ProjectAuditLogEntrySchema
|
|
)
|
|
exports.ProjectAuditLogEntrySchema = ProjectAuditLogEntrySchema
|