{"version":3,"sources":["jsdelivr-header.js","/npm/mongoose-diff-history@2.1.0/diffHistoryModel.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,SAAW,QAAQ,aACnB,OAAE,QAAW,SAEb,cAAgB,IAAI,OACtB,CACI,eAAgB,OAChB,aAAc,OAAO,MAAM,SAC3B,KAAM,CAAC,EACP,KAAM,CAAC,EACP,OAAQ,OACR,QAAS,CAAE,KAAM,OAAQ,IAAK,IAElC,CACI,YAAY,IAIpB,OAAO,QAAU,CAAE,MAAO,SAAS,MAAM,UAAW","file":"/npm/mongoose-diff-history@2.1.0/diffHistoryModel.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/mongoose-diff-history@2.1.0/diffHistoryModel.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const mongoose = require('mongoose');\nconst { Schema } = mongoose;\n\nconst historySchema = new Schema(\n    {\n        collectionName: String,\n        collectionId: Schema.Types.ObjectId,\n        diff: {},\n        user: {},\n        reason: String,\n        version: { type: Number, min: 0 }\n    },\n    {\n        timestamps: true\n    }\n);\n\nmodule.exports = { model: mongoose.model('History', historySchema) };\n"]}