Fix jwt-token

This commit is contained in:
2025-09-22 09:09:23 +02:00
parent bff6a18a9b
commit b03ecdf246
3 changed files with 129 additions and 17 deletions

View File

@@ -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']
}
]
});