@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.
@@ -8481,7 +8481,13 @@ var schema7 = new MongooseSchema11(
8481
8481
  },
8482
8482
  { strict: false, timestamps: true }
8483
8483
  );
8484
- schema7.index({ "affiliate.affiliateCode": 1 }, { sparse: true, unique: true });
8484
+ schema7.index(
8485
+ { "affiliate.affiliateCode": 1 },
8486
+ {
8487
+ partialFilterExpression: { active: true, deletedAt: null },
8488
+ unique: true
8489
+ }
8490
+ );
8485
8491
  schema7.index({ "associates.email": 1 });
8486
8492
  schema7.index({ "licences.expiryDate": 1 });
8487
8493
  schema7.index({ "licences.licenceType": 1 });
@@ -9064,7 +9070,13 @@ var schema16 = new MongooseSchema24(
9064
9070
  },
9065
9071
  { timestamps: true }
9066
9072
  );
9067
- schema16.index({ schoolCode: 1 }, { unique: true });
9073
+ schema16.index(
9074
+ { schoolCode: 1 },
9075
+ {
9076
+ partialFilterExpression: { active: true, deletedAt: null },
9077
+ unique: true
9078
+ }
9079
+ );
9068
9080
  var SchoolModel = mongoose24.models.School || mongoose24.model("School", schema16);
9069
9081
 
9070
9082
  export {
@@ -9117,4 +9129,4 @@ export {
9117
9129
  GameModel,
9118
9130
  SchoolModel
9119
9131
  };
9120
- //# sourceMappingURL=chunk-YRFUGDQ4.mjs.map
9132
+ //# sourceMappingURL=chunk-BDHZYR65.mjs.map