# Generated by Django 4.2.5 on 2024-01-06 00:23

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('lotes', '0017_remove_estufa_semeadura_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='LogFinalizacaoEstufa',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('numero_lote', models.CharField(blank=True, max_length=50, null=True)),
                ('data_lote', models.DateField(blank=True, null=True)),
                ('data_exclusao', models.DateField(default=django.utils.timezone.now)),
                ('hora_exclusao', models.TimeField(default=django.utils.timezone.now)),
                ('nome_usuario_exclusao', models.CharField(blank=True, max_length=255, null=True)),
                ('motivo_exclusao', models.CharField(blank=True, max_length=255, null=True)),
                ('motivo_exclusao_outros', models.TextField(blank=True, null=True)),
                ('semeadura', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='lotes.semeadura')),
                ('usuario_exclusao', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Estufa',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('data_estufa', models.DateField(blank=True, null=True)),
                ('quantidade_mortalidade', models.DecimalField(decimal_places=3, max_digits=10)),
                ('finalizado', models.BooleanField(default=False)),
                ('semeadura', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='estufas', to='lotes.semeadura')),
            ],
        ),
    ]
