@timardex/cluemart-server-shared 1.0.261 → 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.
@@ -39,7 +39,7 @@ import {
39
39
  socialShareResourceSchema,
40
40
  termsAgreementSchema,
41
41
  userLicenseSchema
42
- } from "../chunk-CLHRN4JW.mjs";
42
+ } from "../chunk-BDHZYR65.mjs";
43
43
  export {
44
44
  APP_SETTINGS_ID,
45
45
  AdModel,
@@ -8687,6 +8687,13 @@ var schema7 = new MongooseSchema11(
8687
8687
  },
8688
8688
  { strict: false, timestamps: true }
8689
8689
  );
8690
+ schema7.index(
8691
+ { "affiliate.affiliateCode": 1 },
8692
+ {
8693
+ partialFilterExpression: { active: true, deletedAt: null },
8694
+ unique: true
8695
+ }
8696
+ );
8690
8697
  schema7.index({ "associates.email": 1 });
8691
8698
  schema7.index({ "licences.expiryDate": 1 });
8692
8699
  schema7.index({ "licences.licenceType": 1 });
@@ -9269,6 +9276,13 @@ var schema16 = new MongooseSchema24(
9269
9276
  },
9270
9277
  { timestamps: true }
9271
9278
  );
9279
+ schema16.index(
9280
+ { schoolCode: 1 },
9281
+ {
9282
+ partialFilterExpression: { active: true, deletedAt: null },
9283
+ unique: true
9284
+ }
9285
+ );
9272
9286
  var SchoolModel = import_mongoose25.default.models.School || import_mongoose25.default.model("School", schema16);
9273
9287
 
9274
9288
  // src/service/updateAdStatus.ts