Fix jwt-token
This commit is contained in:
@@ -31,6 +31,11 @@ module.exports = (sequelize) => {
|
||||
key: 'id'
|
||||
}
|
||||
},
|
||||
alert_event_id: {
|
||||
type: DataTypes.UUID,
|
||||
allowNull: true,
|
||||
comment: 'Groups related alerts (SMS, email, webhook) that are part of the same detection event'
|
||||
},
|
||||
alert_type: {
|
||||
type: DataTypes.ENUM('sms', 'email', 'webhook', 'push'),
|
||||
allowNull: true, // Allow null for testing
|
||||
@@ -111,6 +116,9 @@ module.exports = (sequelize) => {
|
||||
},
|
||||
{
|
||||
fields: ['alert_type', 'status']
|
||||
},
|
||||
{
|
||||
fields: ['alert_event_id']
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user