agrs-sequelize-sdk 1.1.41 → 1.1.42

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/Channel.js CHANGED
@@ -8,8 +8,9 @@ module.exports = (sequelize, DataTypes) => {
8
8
  autoIncrement: true,
9
9
  },
10
10
  channelId: {
11
- type: DataTypes.STRING(255), // Explicitly define length for VARCHAR(255)
11
+ type: DataTypes.STRING(255), // הגדרה מפורשת של VARCHAR(255)
12
12
  allowNull: false,
13
+ unique: true, // חזרה להגדרת unique בשדה עצמו
13
14
  comment: "Channel ID (e.g., ch123+ch456)",
14
15
  },
15
16
  styleId: {
@@ -36,12 +37,6 @@ module.exports = (sequelize, DataTypes) => {
36
37
  {
37
38
  tableName: "channels",
38
39
  timestamps: true,
39
- indexes: [
40
- {
41
- unique: true,
42
- fields: ["channelId"], // Define UNIQUE constraint here instead of in the field
43
- },
44
- ],
45
40
  }
46
41
  );
47
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.1.41",
3
+ "version": "1.1.42",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",