@timardex/cluemart-server-shared 1.0.262 → 1.0.263

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.
@@ -8554,7 +8554,13 @@ var schema7 = new MongooseSchema11(
8554
8554
  },
8555
8555
  { strict: false, timestamps: true }
8556
8556
  );
8557
- schema7.index({ "affiliate.affiliateCode": 1 }, { sparse: true, unique: true });
8557
+ schema7.index(
8558
+ { "affiliate.affiliateCode": 1 },
8559
+ {
8560
+ partialFilterExpression: { active: true, deletedAt: null },
8561
+ unique: true
8562
+ }
8563
+ );
8558
8564
  schema7.index({ "associates.email": 1 });
8559
8565
  schema7.index({ "licences.expiryDate": 1 });
8560
8566
  schema7.index({ "licences.licenceType": 1 });
@@ -9137,7 +9143,13 @@ var schema16 = new MongooseSchema24(
9137
9143
  },
9138
9144
  { timestamps: true }
9139
9145
  );
9140
- schema16.index({ schoolCode: 1 }, { unique: true });
9146
+ schema16.index(
9147
+ { schoolCode: 1 },
9148
+ {
9149
+ partialFilterExpression: { active: true, deletedAt: null },
9150
+ unique: true
9151
+ }
9152
+ );
9141
9153
  var SchoolModel = import_mongoose24.default.models.School || import_mongoose24.default.model("School", schema16);
9142
9154
  // Annotate the CommonJS export names for ESM import in node:
9143
9155
  0 && (module.exports = {