agrs-sequelize-sdk 1.1.41 → 1.1.43

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.
Files changed (2) hide show
  1. package/models/Channel.js +2 -10
  2. package/package.json +1 -1
package/models/Channel.js CHANGED
@@ -8,21 +8,19 @@ 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
- comment: "Channel ID (e.g., ch123+ch456)",
13
+ unique: true, // הגדרת unique בשדה
14
14
  },
15
15
  styleId: {
16
16
  type: DataTypes.STRING,
17
17
  allowNull: true,
18
18
  defaultValue: "3544685732",
19
- comment: "Style ID (stid)",
20
19
  },
21
20
  connectedCampaigns: {
22
21
  type: DataTypes.JSON,
23
22
  allowNull: true,
24
23
  defaultValue: [],
25
- comment: "List of connected campaign AGRS_CID values",
26
24
  },
27
25
  createdAt: {
28
26
  type: DataTypes.DATE,
@@ -36,12 +34,6 @@ module.exports = (sequelize, DataTypes) => {
36
34
  {
37
35
  tableName: "channels",
38
36
  timestamps: true,
39
- indexes: [
40
- {
41
- unique: true,
42
- fields: ["channelId"], // Define UNIQUE constraint here instead of in the field
43
- },
44
- ],
45
37
  }
46
38
  );
47
39
 
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.43",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",