agrs-sequelize-sdk 1.2.56 → 1.2.57

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.
@@ -54,6 +54,22 @@ module.exports = (sequelize, DataTypes) => {
54
54
  tableName: "CampaignCreationLogs",
55
55
  timestamps: true,
56
56
  indexes: [
57
+ // CRITICAL: Main performance index for your DISTINCT ON query
58
+ {
59
+ name: "idx_campaign_logs_process_created_desc",
60
+ fields: ["process_id", { name: "createdAt", order: "DESC" }],
61
+ },
62
+ // JSON search optimization for account ID filtering
63
+ {
64
+ name: "idx_campaign_logs_details_gin",
65
+ fields: ["details"],
66
+ using: "gin",
67
+ },
68
+ // Composite index for status + country filters
69
+ {
70
+ name: "idx_campaign_logs_status_country",
71
+ fields: ["status", "country"],
72
+ },
57
73
  {
58
74
  fields: ["process_id"],
59
75
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.2.56",
3
+ "version": "1.2.57",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",