agrs-sequelize-sdk 1.3.2 → 1.3.6

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/Article.js CHANGED
@@ -5,7 +5,6 @@ module.exports = (sequelize, DataTypes) => {
5
5
  providerId: {
6
6
  type: DataTypes.STRING,
7
7
  allowNull: true,
8
- unique: true,
9
8
  },
10
9
  keywordId: {
11
10
  type: DataTypes.STRING,
@@ -157,6 +156,13 @@ module.exports = (sequelize, DataTypes) => {
157
156
  {
158
157
  tableName: "articles",
159
158
  timestamps: true,
159
+ indexes: [
160
+ {
161
+ unique: true,
162
+ fields: ['providerId', 'feed'],
163
+ name: 'unique_provider_per_feed'
164
+ }
165
+ ]
160
166
  }
161
167
  );
162
168
 
@@ -104,6 +104,11 @@ module.exports = (sequelize, DataTypes) => {
104
104
  type: DataTypes.STRING(1000),
105
105
  allowNull: true,
106
106
  },
107
+ extractedText: {
108
+ type: DataTypes.TEXT,
109
+ allowNull: true,
110
+ comment: 'Text extracted from image/video using Gemini Vision API',
111
+ },
107
112
  });
108
113
 
109
114
  return NewFiles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.3.2",
3
+ "version": "1.3.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",