Fix jwt-token

This commit is contained in:
2025-08-17 06:05:25 +02:00
parent 8a5978438e
commit c38336fe9a
2 changed files with 6 additions and 7 deletions

View File

@@ -34,16 +34,14 @@ async function seedDatabase() {
const deviceCount = await Device.count();
if (deviceCount === 0) {
await Device.create({
device_id: 1001,
name: 'Drone Detector Alpha',
location: 'Stockholm Central',
geo_lat: 59.3293,
geo_lon: 18.0686,
location_description: 'Stockholm Central',
is_active: true,
detection_range: 15000, // 15km
frequency_bands: ['2.4GHz', '5.8GHz'],
device_type: 'RF_SCANNER',
last_heartbeat: new Date()
last_heartbeat: new Date(),
heartbeat_interval: 300,
firmware_version: '1.0.0'
});
console.log('✅ Sample device created');