Fix jwt-token

This commit is contained in:
2025-08-17 06:07:50 +02:00
parent c38336fe9a
commit ad27485ef0
2 changed files with 6 additions and 3 deletions

View File

@@ -74,8 +74,11 @@ module.exports = (sequelize) => {
comment: 'Whether this detection has been processed for alerts'
},
threat_level: {
type: DataTypes.ENUM('monitoring', 'low', 'medium', 'high', 'critical'),
type: DataTypes.STRING,
allowNull: true,
validate: {
isIn: [['monitoring', 'low', 'medium', 'high', 'critical']]
},
comment: 'Assessed threat level based on RSSI and drone type'
},
estimated_distance: {