@kipicore/dbcore 1.1.108 → 1.1.109

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.
@@ -1181,5 +1181,6 @@ export declare enum COMPETITION_USER_ERROR_MESSAGES {
1181
1181
  GET_FAIL = "Unable to retrieve participants data!",
1182
1182
  UPDATE_FAIL = "Unable to update participants data!",
1183
1183
  DELETE_FAIL = "Unable to delete participants data!",
1184
- NOT_FOUND = "Unable to find participants data!"
1184
+ NOT_FOUND = "Unable to find participants data!",
1185
+ USER_ALREADY_EXIT = "User already registered!"
1185
1186
  }
@@ -1311,4 +1311,5 @@ var COMPETITION_USER_ERROR_MESSAGES;
1311
1311
  COMPETITION_USER_ERROR_MESSAGES["UPDATE_FAIL"] = "Unable to update participants data!";
1312
1312
  COMPETITION_USER_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete participants data!";
1313
1313
  COMPETITION_USER_ERROR_MESSAGES["NOT_FOUND"] = "Unable to find participants data!";
1314
+ COMPETITION_USER_ERROR_MESSAGES["USER_ALREADY_EXIT"] = "User already registered!";
1314
1315
  })(COMPETITION_USER_ERROR_MESSAGES || (exports.COMPETITION_USER_ERROR_MESSAGES = COMPETITION_USER_ERROR_MESSAGES = {}));
@@ -59,7 +59,7 @@ const roleSchema = new mongoose_1.Schema({
59
59
  required: false,
60
60
  },
61
61
  }, { _id: false });
62
- const userParticipationSchema = new mongoose_1.Schema({
62
+ const competitionUserSchema = new mongoose_1.Schema({
63
63
  instituteId: {
64
64
  type: String,
65
65
  required: false,
@@ -101,5 +101,5 @@ const userParticipationSchema = new mongoose_1.Schema({
101
101
  timestamps: true,
102
102
  versionKey: false,
103
103
  });
104
- const CompetitionUsersModel = mongoose_1.default.model('user_participation', userParticipationSchema);
104
+ const CompetitionUsersModel = mongoose_1.default.model('competition_users', competitionUserSchema);
105
105
  exports.default = CompetitionUsersModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.108",
3
+ "version": "1.1.109",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",