# Generated by Django 5.1.3 on 2024-11-29 06:20

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Device',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('device_id', models.CharField(db_index=True, max_length=200, verbose_name='Id устройства')),
                ('name', models.TextField(max_length=300, null=True, verbose_name='Имя')),
                ('device_ip', models.CharField(db_index=True, max_length=200, null=True, verbose_name='IP адрес')),
                ('local_key', models.TextField(db_index=True, max_length=200, null=True, verbose_name='Ключ устройства')),
                ('device_version', models.FloatField(blank=True, null=True, verbose_name='Версия устройства')),
                ('on_off', models.BooleanField(null=True, verbose_name='Вкл')),
            ],
            options={
                'verbose_name': 'Устройство',
                'verbose_name_plural': 'Устройства',
                'ordering': ['device_id'],
            },
        ),
        migrations.CreateModel(
            name='Hostname',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=255, null=True)),
                ('area', models.CharField(blank=True, max_length=255, null=True, verbose_name='Зона температуры')),
            ],
            options={
                'verbose_name': 'Зона температуры',
                'verbose_name_plural': 'Зона температуры',
                'ordering': ['name'],
            },
        ),
        migrations.CreateModel(
            name='Month',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(db_index=True, max_length=200, verbose_name='Месяц')),
                ('temp', models.JSONField(blank=True, default=list, null=True, verbose_name='Список температур')),
            ],
            options={
                'verbose_name': 'Месяц года',
                'verbose_name_plural': 'Месяц года',
                'ordering': ['name'],
            },
        ),
    ]
