mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 07:00:47 +02:00
07c827e9fd
[web] last infrastructure conversions GitOrigin-RevId: ad1aff9b7df0610ed0303157d9e2c8032f32c02b
23 lines
572 B
JavaScript
23 lines
572 B
JavaScript
import mongoose from '../infrastructure/Mongoose.mjs'
|
|
const { Schema } = mongoose
|
|
|
|
export const GroupAuditLogEntrySchema = new Schema(
|
|
{
|
|
groupId: { type: Schema.Types.ObjectId, index: true },
|
|
info: { type: Object },
|
|
initiatorId: { type: Schema.Types.ObjectId },
|
|
ipAddress: { type: String },
|
|
operation: { type: String },
|
|
timestamp: { type: Date, default: Date.now },
|
|
},
|
|
{
|
|
collection: 'groupAuditLogEntries',
|
|
minimize: false,
|
|
}
|
|
)
|
|
|
|
export const GroupAuditLogEntry = mongoose.model(
|
|
'GroupAuditLogEntry',
|
|
GroupAuditLogEntrySchema
|
|
)
|