# Generated by Django 4.0.5 on 2022-11-04 11:09

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='AltaSensoresFijos',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('idsensor', models.CharField(max_length=5, unique=True, verbose_name='Tarjeta Sensor')),
                ('nombre', models.CharField(max_length=255, verbose_name='Ubicacion')),
                ('temp_media', models.FloatField(blank=True, null=True, verbose_name='Temperatura Media')),
                ('temp_min', models.FloatField(verbose_name='Temperatura Minima')),
                ('temp_max', models.FloatField(verbose_name='Temperatura Maxima')),
                ('hume_min', models.FloatField(verbose_name='Humedad Minima')),
                ('hume_max', models.FloatField(verbose_name='Humedad Maxima')),
                ('activo', models.CharField(choices=[('SI', 'SI'), ('NO', 'NO')], default='NO', max_length=5, verbose_name='Activo?')),
                ('ver_humedad', models.CharField(choices=[('SI', 'SI'), ('NO', 'NO')], default='NO', max_length=5, verbose_name='ver Humedad?')),
            ],
            options={
                'verbose_name': 'Alta Sensor Fijo',
                'verbose_name_plural': 'Alta Sensor Fijo',
                'ordering': ['idsensor'],
            },
        ),
        migrations.CreateModel(
            name='sensoresfijos',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('idsensor', models.CharField(max_length=5, verbose_name='Tarjeta Sensor')),
                ('temp', models.FloatField(blank=True, null=True, verbose_name='Temperatura')),
                ('hume', models.FloatField(blank=True, null=True, verbose_name='Humedad')),
                ('fecha', models.DateField(auto_now_add=True, verbose_name='Fecha')),
                ('hora', models.TimeField(default=django.utils.timezone.now, verbose_name='Hora')),
                ('fecharango', models.DateTimeField(auto_now_add=True, verbose_name='Fecha por rango')),
            ],
            options={
                'verbose_name': 'Sensor Fijo',
                'verbose_name_plural': 'Sensor Fijo',
                'ordering': ['idsensor'],
            },
        ),
        migrations.CreateModel(
            name='telegram',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('idBot', models.CharField(max_length=250, unique=True, verbose_name='ID del Bot')),
                ('idGrupo', models.CharField(max_length=250, unique=True, verbose_name='ID del Grupo')),
            ],
            options={
                'verbose_name': 'telegram conf',
                'verbose_name_plural': 'telegram conf',
                'ordering': ['id'],
            },
        ),
    ]
