Fix jwt-token

This commit is contained in:
2025-08-18 06:30:42 +02:00
parent 5c1d1ae175
commit c03385dc2b
3 changed files with 55 additions and 12 deletions

View File

@@ -125,6 +125,22 @@ async function seedDatabase() {
cooldown_period: 300, // 5 minutes between alerts
min_detections: 1,
time_window: 60 // 1 minute window
},
{
user_id: adminUser.id,
name: 'Orlan Military Drone Detection Alert',
description: 'Emergency alert for any Orlan military drone detection regardless of location',
is_active: true,
device_ids: [], // All devices
drone_types: [1], // Only Orlan drones (type 1)
min_rssi: -100, // Any RSSI level
priority: 'critical',
min_threat_level: null, // No minimum threat level (will trigger on any Orlan)
alert_channels: ['sms'],
sms_phone_number: '0736419592', // Emergency contact
cooldown_period: 60, // Short cooldown for critical threats
min_detections: 1,
time_window: 30 // Short time window for immediate response
}
]);