@likewatt/models 1.103.1 → 1.104.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -265,6 +265,8 @@ exports.Consent = Consent = __decorate([
265
265
  })
266
266
  ], Consent);
267
267
  exports.ConsentSchema = mongoose_1.SchemaFactory.createForClass(Consent);
268
+ // Index pour la requête de couverture anti-fraude (workspace + PDL couvert)
269
+ exports.ConsentSchema.index({ workspaceId: 1, pdls: 1 });
268
270
  // Hook pre-save pour générer automatiquement un UUID si _id n'est pas fourni
269
271
  exports.ConsentSchema.pre('save', function (next) {
270
272
  if (!this._id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.103.1",
3
+ "version": "1.104.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {