# Generated by Django 3.2.13 on 2023-03-28 12:47

import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('panel', '0008_auto_20230221_1224'),
    ]

    operations = [
        migrations.AddField(
            model_name='killhouseassignmentinformation',
            name='unusual_casualties',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='killhouseassignmentinformation',
            name='weight_withs_losses',
            field=models.FloatField(default=0, null=True),
        ),
        migrations.AddField(
            model_name='killhousecomplaint',
            name='registrar',
            field=models.JSONField(null=True),
        ),
        migrations.AddField(
            model_name='poultryhatching',
            name='registrar',
            field=models.JSONField(null=True),
        ),
        migrations.AddField(
            model_name='poultryrequest',
            name='buyer',
            field=models.JSONField(null=True),
        ),
        migrations.AddField(
            model_name='poultryrequest',
            name='out',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='poultryrequest',
            name='registrar',
            field=models.JSONField(null=True),
        ),
        migrations.AddField(
            model_name='provincecheckoperatorrequest',
            name='poultry_request',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='province_poultry_request', to='panel.poultryrequest'),
        ),
        migrations.AddField(
            model_name='provincefactortokillhouse',
            name='out',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='provincefactortokillhouse',
            name='province_check_req',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='province_check_province', to='panel.provincecheckoperatorrequest'),
        ),
        migrations.AddField(
            model_name='provincefactortokillhouse',
            name='weight',
            field=models.FloatField(default=0),
        ),
        migrations.AddField(
            model_name='provincefactortokillhouseforpoultry',
            name='out',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='provincefactortokillhouseforpoultry',
            name='province_check_req',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='province_check_poultry', to='panel.provincecheckoperatorrequest'),
        ),
        migrations.AddField(
            model_name='provincefactortokillhouseforpoultry',
            name='weight',
            field=models.FloatField(default=0),
        ),
        migrations.AlterField(
            model_name='depositallocation',
            name='poultry_share',
            field=models.FloatField(default=0, null=True),
        ),
        migrations.AlterField(
            model_name='functionexecutor',
            name='compare_time',
            field=models.DateTimeField(default=datetime.datetime(2023, 3, 28, 12, 47, 27, 801205)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='assignment_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 3, 28, 12, 47, 27, 736270)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='city_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 3, 28, 12, 47, 27, 736196)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='kill_house_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 3, 28, 12, 47, 27, 736254)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='province_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 3, 28, 12, 47, 27, 736235)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='date_of_register',
            field=models.DateTimeField(default=datetime.datetime(2023, 3, 28, 12, 47, 27, 740001)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='hatching_date',
            field=models.DateTimeField(default=datetime.datetime(2023, 3, 28, 12, 47, 27, 739844)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='last_party_date',
            field=models.DateTimeField(default=datetime.datetime(2023, 3, 28, 12, 47, 27, 739866)),
        ),
        migrations.CreateModel(
            name='ProvinceImportKillHouseOutFactors',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('key', models.UUIDField(default=uuid.uuid4, editable=False, null=True, unique=True)),
                ('create_date', models.DateTimeField(auto_now_add=True)),
                ('modify_date', models.DateTimeField(auto_now=True)),
                ('trash', models.BooleanField(default=False)),
                ('image', models.CharField(max_length=500, null=True)),
                ('amount', models.FloatField(default=0)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='provinceimportkillhouseoutfactors_createdby', to=settings.AUTH_USER_MODEL)),
                ('kill_house_factor', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='province_check_factor_out', to='panel.provincefactortokillhouse')),
                ('kill_house_factor_poultry', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='province_check_factor_poultry_out', to='panel.provincefactortokillhouseforpoultry')),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='provinceimportkillhouseoutfactors_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('province_check', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='province_check_request', to='panel.provincecheckoperatorrequest')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='CheckUnusualCasualties',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('key', models.UUIDField(default=uuid.uuid4, editable=False, null=True, unique=True)),
                ('create_date', models.DateTimeField(auto_now_add=True)),
                ('modify_date', models.DateTimeField(auto_now=True)),
                ('trash', models.BooleanField(default=False)),
                ('state', models.CharField(max_length=50, null=True)),
                ('message', models.TextField(null=True)),
                ('role', models.JSONField(null=True)),
                ('complaint', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='losses', to='panel.killhousecomplaint')),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='checkunusualcasualties_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='checkunusualcasualties_modifiedby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
