@timardex/cluemart-server-shared 4.2.1 → 5.1.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.
@@ -1115,6 +1115,11 @@ var schema7 = new MongooseSchema6(
1115
1115
  type: ResourceImageTypeSchema
1116
1116
  },
1117
1117
  dateTime: [dateTimeSchema],
1118
+ deactivatedReason: {
1119
+ enum: Object.values(import_cluemart_shared9.EnumImportedMarketDeactivationReason),
1120
+ required: false,
1121
+ type: String
1122
+ },
1118
1123
  deletedAt: { default: null, required: false, type: Date },
1119
1124
  description: { required: true, type: String },
1120
1125
  earliestStartDate: { default: null, required: false, type: Date },
@@ -2008,6 +2013,14 @@ schema15.index({ "licences.licenceType": 1 });
2008
2013
  schema15.index({ promoCodes: 1, active: 1, deletedAt: 1 });
2009
2014
  schema15.index({ email: "text", firstName: "text", lastName: "text" });
2010
2015
  schema15.index({ email: 1 }, { name: "email_unique", unique: true });
2016
+ schema15.index(
2017
+ { email: 1 },
2018
+ {
2019
+ collation: { locale: "en", strength: 2 },
2020
+ name: "email_unique_normalized",
2021
+ unique: true
2022
+ }
2023
+ );
2011
2024
  schema15.index({ "associatedResources.events": 1 });
2012
2025
  schema15.index({ "associatedResources.partners": 1 });
2013
2026
  schema15.index({ "associatedResources.vendors": 1 });