# Generated by Django 5.2.4 on 2025-11-20 20:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0016_update_dvr_template_paths'), ] operations = [ migrations.CreateModel( name='SystemEvent', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('event_type', models.CharField(choices=[('channel_start', 'Channel Started'), ('channel_stop', 'Channel Stopped'), ('channel_buffering', 'Channel Buffering'), ('channel_failover', 'Channel Failover'), ('channel_reconnect', 'Channel Reconnected'), ('channel_error', 'Channel Error'), ('client_connect', 'Client Connected'), ('client_disconnect', 'Client Disconnected'), ('recording_start', 'Recording Started'), ('recording_end', 'Recording Ended'), ('stream_switch', 'Stream Switched'), ('m3u_refresh', 'M3U Refreshed'), ('m3u_download', 'M3U Downloaded'), ('epg_refresh', 'EPG Refreshed'), ('epg_download', 'EPG Downloaded')], db_index=True, max_length=50)), ('timestamp', models.DateTimeField(auto_now_add=True, db_index=True)), ('channel_id', models.UUIDField(blank=True, db_index=True, null=True)), ('channel_name', models.CharField(blank=True, max_length=255, null=True)), ('details', models.JSONField(blank=True, default=dict)), ], options={ 'ordering': ['-timestamp'], 'indexes': [models.Index(fields=['-timestamp'], name='core_system_timesta_c6c3d1_idx'), models.Index(fields=['event_type', '-timestamp'], name='core_system_event_t_4267d9_idx')], }, ), ]