agrs-sequelize-sdk 1.3.10 → 1.3.12

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.
@@ -8,6 +8,12 @@ module.exports = (sequelize, DataTypes) => {
8
8
  primaryKey: true,
9
9
  autoIncrement: true,
10
10
  },
11
+ original_log_id: {
12
+ type: DataTypes.INTEGER,
13
+ allowNull: true,
14
+ unique: true,
15
+ comment: "ID from CampaignCreationLog (V1) - prevents duplicates",
16
+ },
11
17
  process_id: {
12
18
  type: DataTypes.UUID,
13
19
  allowNull: false,
@@ -241,6 +247,7 @@ module.exports = (sequelize, DataTypes) => {
241
247
  createdAt: "created_at",
242
248
  updatedAt: "updated_at",
243
249
  indexes: [
250
+ { fields: ["original_log_id"], unique: true }, // Prevent duplicate V1 logs
244
251
  { fields: ["process_id"] },
245
252
  { fields: ["status"] },
246
253
  { fields: ["country"] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",