# Generated by Django 3.2.13 on 2022-12-21 00:01

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),
        ('authentication', '0005_auto_20221221_0001'),
        ('panel', '0005_auto_20221212_0953'),
    ]

    operations = [
        migrations.AddField(
            model_name='depositallocation',
            name='central_union_share_payment',
            field=models.FloatField(default=0, null=True),
        ),
        migrations.AddField(
            model_name='depositallocation',
            name='central_union_share_payment_info',
            field=models.JSONField(default=list, null=True),
        ),
        migrations.AddField(
            model_name='depositallocation',
            name='city_share_payment',
            field=models.FloatField(default=0, null=True),
        ),
        migrations.AddField(
            model_name='depositallocation',
            name='city_share_payment_info',
            field=models.JSONField(default=list, null=True),
        ),
        migrations.AddField(
            model_name='depositallocation',
            name='company_share_payment',
            field=models.FloatField(default=0, null=True),
        ),
        migrations.AddField(
            model_name='depositallocation',
            name='company_share_payment_info',
            field=models.JSONField(default=list, null=True),
        ),
        migrations.AddField(
            model_name='depositallocation',
            name='fanava_share_payment',
            field=models.FloatField(default=0, null=True),
        ),
        migrations.AddField(
            model_name='depositallocation',
            name='fanava_share_payment_info',
            field=models.JSONField(default=list, null=True),
        ),
        migrations.AddField(
            model_name='depositallocation',
            name='poultry_share_payment',
            field=models.FloatField(default=0, null=True),
        ),
        migrations.AddField(
            model_name='depositallocation',
            name='poultry_share_payment_info',
            field=models.JSONField(default=list, null=True),
        ),
        migrations.AddField(
            model_name='depositallocation',
            name='province_share_payment',
            field=models.FloatField(default=0, null=True),
        ),
        migrations.AddField(
            model_name='depositallocation',
            name='province_share_payment_info',
            field=models.JSONField(default=list, null=True),
        ),
        migrations.AddField(
            model_name='provincefactortokillhouse',
            name='pay_for',
            field=models.CharField(max_length=20, null=True),
        ),
        migrations.AlterField(
            model_name='functionexecutor',
            name='compare_time',
            field=models.DateTimeField(default=datetime.datetime(2022, 12, 21, 0, 1, 33, 724302)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='assignment_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2022, 12, 21, 0, 1, 33, 663490)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='city_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2022, 12, 21, 0, 1, 33, 663413)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='kill_house_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2022, 12, 21, 0, 1, 33, 663473)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='province_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2022, 12, 21, 0, 1, 33, 663454)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='date_of_register',
            field=models.DateTimeField(default=datetime.datetime(2022, 12, 21, 0, 1, 33, 666380)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='hatching_date',
            field=models.DateTimeField(default=datetime.datetime(2022, 12, 21, 0, 1, 33, 666216)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='last_party_date',
            field=models.DateTimeField(default=datetime.datetime(2022, 12, 21, 0, 1, 33, 666239)),
        ),
        migrations.CreateModel(
            name='ProvinceFactorToKillHouseForPoultry',
            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)),
                ('total_weight', models.FloatField(default=0)),
                ('factor_fee', models.FloatField(default=0)),
                ('factor_bar_code', models.BigIntegerField(null=True)),
                ('factor_date', models.DateTimeField(null=True)),
                ('total_price', models.FloatField(default=0)),
                ('today_price', models.FloatField(default=0)),
                ('real_weight', models.FloatField(default=0)),
                ('shares', models.JSONField(default=dict, null=True)),
                ('paid_state', models.CharField(default='pending', max_length=20)),
                ('pay_for', models.CharField(max_length=20, null=True)),
                ('kill_house_factor_info', models.CharField(default='pending', max_length=20)),
                ('bank', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='bank_card_poultry', to='authentication.bankcard')),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='provincefactortokillhouseforpoultry_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='provincefactortokillhouseforpoultry_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('province_check_info', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='province_info_poultry', to='panel.provincecheckinformation')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='KillHouseFactorToPoultry',
            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)),
                ('payment_code', models.CharField(max_length=100, null=True)),
                ('state', models.CharField(default='pending', max_length=20)),
                ('payment_state', models.CharField(max_length=50, null=True)),
                ('payment_method', models.CharField(max_length=50, null=True)),
                ('factor_image', models.CharField(max_length=500, null=True)),
                ('message', models.CharField(max_length=500, null=True)),
                ('importer', models.CharField(max_length=100, null=True)),
                ('archive_state', models.CharField(default='pending', max_length=50)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='killhousefactortopoultry_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='killhousefactortopoultry_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('province_factor', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='province_factor_info_poultry', to='panel.provincefactortokillhouseforpoultry')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='provincecheckkillhousefactor',
            name='kill_house_factor_poultry',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='province_check_factor_poultry', to='panel.killhousefactortopoultry'),
        ),
        migrations.AddField(
            model_name='provincefactortokillhouse',
            name='poultry_factor',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='province_factor_poultry', to='panel.provincefactortokillhouseforpoultry'),
        ),
    ]
