11 lines
319 B
TypeScript
11 lines
319 B
TypeScript
|
import mongoose from 'mongoose';
|
||
|
|
||
|
const ChangelogSchema = new mongoose.Schema({
|
||
|
action: String,
|
||
|
collectionName: String,
|
||
|
conditions: Object,
|
||
|
data: Object,
|
||
|
user_id: mongoose.Schema.Types.ObjectId
|
||
|
}, {minimize: false});
|
||
|
|
||
|
export default mongoose.model<any, mongoose.Model<any, any>>('changelog', ChangelogSchema);
|