# Generated by Django 5.2.5 on 2025-08-25 07:41

import django.utils.timezone
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('sitemanagement', '0001_initial'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='alert',
            options={'ordering': ['created_at', 'sensor'], 'verbose_name': 'Тревога', 'verbose_name_plural': 'Тревоги'},
        ),
        migrations.AlterModelOptions(
            name='channel',
            options={'ordering': ['multiplexor', 'number', 'position'], 'verbose_name': 'Канал', 'verbose_name_plural': 'Каналы'},
        ),
        migrations.AlterModelOptions(
            name='metric',
            options={'ordering': ['timestamp', 'sensor'], 'verbose_name': 'Метрика', 'verbose_name_plural': 'Метрики'},
        ),
        migrations.AlterModelOptions(
            name='multiplexor',
            options={'ordering': ['name'], 'verbose_name': 'Мультиплексор', 'verbose_name_plural': 'Мультиплексоры'},
        ),
        migrations.AlterModelOptions(
            name='sensor',
            options={'ordering': ['channel', 'sensor_type', 'serial_number'], 'verbose_name': 'Датчик', 'verbose_name_plural': 'Датчики'},
        ),
        migrations.AlterModelOptions(
            name='sensortype',
            options={'ordering': ['name'], 'verbose_name': 'Тип сенсора', 'verbose_name_plural': 'Типы сенсоров'},
        ),
        migrations.AlterModelOptions(
            name='signalformat',
            options={'ordering': ['sensor_type', 'code'], 'verbose_name': 'Формат сигнала', 'verbose_name_plural': 'Форматы сигналов'},
        ),
        migrations.RemoveIndex(
            model_name='metric',
            name='sitemanagem_timesta_ac22b7_idx',
        ),
        migrations.RemoveIndex(
            model_name='metric',
            name='sitemanagem_sensor__8d94ff_idx',
        ),
        migrations.AddField(
            model_name='alert',
            name='updated_at',
            field=models.DateTimeField(auto_now=True),
        ),
        migrations.AddField(
            model_name='channel',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='channel',
            name='updated_at',
            field=models.DateTimeField(auto_now=True),
        ),
        migrations.AddField(
            model_name='metric',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='metric',
            name='updated_at',
            field=models.DateTimeField(auto_now=True),
        ),
        migrations.AddField(
            model_name='multiplexor',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='multiplexor',
            name='updated_at',
            field=models.DateTimeField(auto_now=True),
        ),
        migrations.AddField(
            model_name='sensor',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='sensor',
            name='updated_at',
            field=models.DateTimeField(auto_now=True),
        ),
        migrations.AddField(
            model_name='sensortype',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='sensortype',
            name='updated_at',
            field=models.DateTimeField(auto_now=True),
        ),
        migrations.AddField(
            model_name='signalformat',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='signalformat',
            name='updated_at',
            field=models.DateTimeField(auto_now=True),
        ),
    ]
