# Generated by Django 5.0.4 on 2025-05-15 17:27

from django.db import migrations, models


class Migration(migrations.Migration):

    replaces = [('app_status', '0001_initial'), ('app_status', '0002_rename_check_status_statusraw_status'), ('app_status', '0003_statussamplehour'), ('app_status', '0004_statussampleday')]

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='StatusRaw',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('timestamp', models.DateTimeField(auto_now_add=True, verbose_name='Timestamp')),
                ('monitor', models.CharField(max_length=128, verbose_name='Monitor')),
                ('status', models.BooleanField(default=False, verbose_name='Status')),
                ('usec', models.IntegerField(default=0, verbose_name='usec')),
                ('data', models.TextField(blank=True, max_length=5000, null=True, verbose_name='Data')),
            ],
            options={
                'verbose_name': 'Status Raw',
                'verbose_name_plural': 'Status Raw',
                'db_table': 'status_raw',
                'ordering': ['timestamp'],
                'indexes': [models.Index(fields=['timestamp'], name='status_raw_timesta_9a5de5_idx'), models.Index(fields=['monitor'], name='status_raw_monitor_f61f56_idx')],
            },
        ),
        migrations.CreateModel(
            name='StatusSampleHour',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('timestamp', models.DateTimeField(verbose_name='Timestamp')),
                ('monitor', models.CharField(max_length=128, verbose_name='Monitor')),
                ('count_ok', models.IntegerField(blank=True, null=True, verbose_name='OK')),
                ('count_ko', models.IntegerField(blank=True, null=True, verbose_name='KO')),
            ],
            options={
                'verbose_name': 'Status Sample Hour',
                'verbose_name_plural': 'Status Sample Hour',
                'db_table': 'status_sample_hour',
                'ordering': ['timestamp'],
                'indexes': [models.Index(fields=['timestamp'], name='status_samp_timesta_d39247_idx'), models.Index(fields=['monitor'], name='status_samp_monitor_d6737b_idx')],
            },
        ),
        migrations.CreateModel(
            name='StatusSampleDay',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('timestamp', models.DateTimeField(verbose_name='Timestamp')),
                ('monitor', models.CharField(max_length=128, verbose_name='Monitor')),
                ('count_ok', models.IntegerField(blank=True, null=True, verbose_name='OK')),
                ('count_ko', models.IntegerField(blank=True, null=True, verbose_name='KO')),
            ],
            options={
                'verbose_name': 'Status Sample Day',
                'verbose_name_plural': 'Status Sample Day',
                'db_table': 'status_sample_day',
                'ordering': ['timestamp'],
                'indexes': [models.Index(fields=['timestamp'], name='status_samp_timesta_5bace4_idx'), models.Index(fields=['monitor'], name='status_samp_monitor_6064b6_idx')],
            },
        ),
    ]
