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 +2 -7
- package/package.json +1 -1
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), //
|
|
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
|
|