pristine-member-nest-api-database 1.0.72 → 1.0.73

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.
@@ -43,5 +43,7 @@ const BpCompanyBranchFieldMappingSchema = new mongoose_1.Schema({
43
43
  },
44
44
  ],
45
45
  });
46
+ // (composite unique key)
47
+ BpCompanyBranchFieldMappingSchema.index({ BranchId: 1, companyTypeId: 1, fieldId: 1 }, { unique: true });
46
48
  const mongoBpCompanyBranchFieldMapping = mongoose_1.default.model("Editor.Branch.CompanyTypes.Field.Mapping", BpCompanyBranchFieldMappingSchema);
47
49
  exports.mongoBpCompanyBranchFieldMapping = mongoBpCompanyBranchFieldMapping;
@@ -29,7 +29,11 @@ const BpCompanyBranchFieldMappingSchema =
29
29
  },
30
30
  ],
31
31
  });
32
-
32
+ // (composite unique key)
33
+ BpCompanyBranchFieldMappingSchema.index(
34
+ { BranchId: 1, companyTypeId: 1, fieldId: 1 },
35
+ { unique: true },
36
+ );
33
37
  const mongoBpCompanyBranchFieldMapping =
34
38
  mongoose.model<BPCompanyBranchFieldMapping>(
35
39
  "Editor.Branch.CompanyTypes.Field.Mapping",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pristine-member-nest-api-database",
3
- "version": "1.0.72",
3
+ "version": "1.0.73",
4
4
  "description": "application verification database changes with gs1 branch. not tested. ",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {