agrs-sequelize-sdk 1.2.70 → 1.2.71

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.
package/models/Rule.js CHANGED
@@ -35,7 +35,7 @@ module.exports = (sequelize) => {
35
35
  type: DataTypes.UUID,
36
36
  allowNull: true,
37
37
  references: {
38
- model: "Rules",
38
+ model: "RulesValues",
39
39
  key: "id",
40
40
  },
41
41
  onDelete: "CASCADE",
@@ -122,32 +122,7 @@ module.exports = (sequelize) => {
122
122
  {
123
123
  tableName: "RulesValues", // Use the existing table name
124
124
  timestamps: true,
125
- indexes: [
126
- {
127
- fields: ["code"],
128
- },
129
- {
130
- fields: ["feature"],
131
- },
132
- {
133
- fields: ["parentId"],
134
- },
135
- {
136
- fields: ["isActive"],
137
- },
138
- {
139
- fields: ["ruleType"],
140
- },
141
- {
142
- fields: ["targetLevel"],
143
- },
144
- {
145
- fields: ["scheduleType"],
146
- },
147
- {
148
- fields: ["nextExecution"],
149
- },
150
- ],
125
+ // Remove indexes from model definition - they will be created by migration
151
126
  }
152
127
  );
153
128
 
@@ -71,17 +71,7 @@ module.exports = (sequelize) => {
71
71
  {
72
72
  tableName: "RuleActions",
73
73
  timestamps: true,
74
- indexes: [
75
- {
76
- fields: ["ruleId"],
77
- },
78
- {
79
- fields: ["actionType"],
80
- },
81
- {
82
- fields: ["order"],
83
- },
84
- ],
74
+ // Remove indexes from model definition - they will be created by migration
85
75
  }
86
76
  );
87
77
 
@@ -70,20 +70,7 @@ module.exports = (sequelize) => {
70
70
  {
71
71
  tableName: "RuleConditions",
72
72
  timestamps: true,
73
- indexes: [
74
- {
75
- fields: ["ruleId"],
76
- },
77
- {
78
- fields: ["field"],
79
- },
80
- {
81
- fields: ["operator"],
82
- },
83
- {
84
- fields: ["order"],
85
- },
86
- ],
73
+ // Remove indexes from model definition - they will be created by migration
87
74
  }
88
75
  );
89
76
 
@@ -86,20 +86,7 @@ module.exports = (sequelize) => {
86
86
  {
87
87
  tableName: "RuleExecutions",
88
88
  timestamps: true,
89
- indexes: [
90
- {
91
- fields: ["ruleId"],
92
- },
93
- {
94
- fields: ["status"],
95
- },
96
- {
97
- fields: ["startTime"],
98
- },
99
- {
100
- fields: ["executionType"],
101
- },
102
- ],
89
+ // Remove indexes from model definition - they will be created by migration
103
90
  }
104
91
  );
105
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.2.70",
3
+ "version": "1.2.71",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",