# Generated by Django 3.2.13 on 2023-08-06 22:14

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 = [
        ('authentication', '0009_auto_20230806_2214'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('panel', '0036_auto_20230725_2320'),
    ]

    operations = [
        migrations.CreateModel(
            name='Guilds',
            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)),
                ('user_id_foreign_key', models.IntegerField(null=True)),
                ('address_id_foreign_key', models.IntegerField(null=True)),
                ('user_bank_id_foreign_key', models.IntegerField(null=True)),
                ('wallet_id_foreign_key', models.IntegerField(null=True)),
                ('provincial_government_id_key', models.IntegerField(null=True)),
                ('identity_documents', models.JSONField(null=True)),
                ('active', models.BooleanField(default=True)),
                ('city_number', models.IntegerField(default=0)),
                ('city_name', models.CharField(max_length=100, null=True)),
                ('guilds_id', models.CharField(max_length=50, null=True)),
                ('license_number', models.CharField(max_length=50, null=True)),
                ('guilds_name', models.CharField(max_length=100, null=True)),
                ('type_activity', models.CharField(max_length=100, null=True)),
                ('area_activity', models.CharField(max_length=100, null=True)),
                ('province_number', models.IntegerField(default=0)),
                ('province_name', models.CharField(max_length=100, null=True)),
                ('steward', models.BooleanField(default=False)),
                ('centers_allocation', models.JSONField(null=True)),
                ('allocation_limit', models.BigIntegerField(null=True)),
                ('limitation_allocation', models.BooleanField(default=False)),
                ('address', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='guilds_address', to='authentication.systemaddress')),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='guilds_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='guilds_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='guilds_user', to='authentication.systemuserprofile')),
                ('user_bank_info', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='guilds_bank_info', to='authentication.bankcard')),
                ('wallet', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='guilds_wallet', to='panel.wallet')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='KillHouseWareHouse',
            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)),
                ('bar_quantity', models.BigIntegerField(default=0)),
                ('allocated_quantity', models.BigIntegerField(default=0)),
                ('bar_live_weight', models.FloatField(default=0)),
                ('number_of_carcasses', models.BigIntegerField(default=0)),
                ('updated_number_of_carcasses', models.BigIntegerField(default=0)),
                ('weight_of_carcasses', models.FloatField(default=0)),
                ('updated_weight_of_carcasses', models.FloatField(default=0)),
                ('ave_weight_of_carcasses', models.FloatField(default=0)),
                ('free_bar_quantity', models.BigIntegerField(default=0)),
                ('number_of_free_carcasses', models.BigIntegerField(default=0)),
                ('free_weight_of_carcasses', models.FloatField(default=0)),
                ('total_bar_quantity', models.BigIntegerField(default=0)),
                ('total_number_of_carcasses', models.BigIntegerField(default=0)),
                ('total_weight_of_carcasses', models.FloatField(default=0)),
                ('allocated_total_number_of_carcasses', models.BigIntegerField(default=0)),
                ('allocated_total_weight_of_carcasses', models.FloatField(default=0)),
                ('remain_total_number_of_carcasses', models.BigIntegerField(default=0)),
                ('remain_total_weight_of_carcasses', models.FloatField(default=0)),
                ('final_registration', models.BooleanField(default=False)),
                ('date', models.DateTimeField(null=True)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='killhousewarehouse_createdby', to=settings.AUTH_USER_MODEL)),
                ('kill_house', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ware_house_kill_house', to='panel.killhouse')),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='killhousewarehouse_modifiedby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Steward',
            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)),
                ('active', models.BooleanField(default=True)),
                ('allocation_limit', models.BigIntegerField(null=True)),
                ('limitation_allocation', models.BooleanField(default=False)),
                ('centers_allocation', models.JSONField(null=True)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='steward_createdby', to=settings.AUTH_USER_MODEL)),
                ('guilds', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='steward_guilds', to='panel.guilds')),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='steward_modifiedby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AlterField(
            model_name='functionexecutor',
            name='compare_time',
            field=models.DateTimeField(default=datetime.datetime(2023, 8, 6, 22, 14, 20, 946697)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='assignment_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 8, 6, 22, 14, 20, 856971)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='city_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 8, 6, 22, 14, 20, 856872)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='kill_house_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 8, 6, 22, 14, 20, 856950)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='province_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2023, 8, 6, 22, 14, 20, 856909)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='date_of_register',
            field=models.DateTimeField(default=datetime.datetime(2023, 8, 6, 22, 14, 20, 860085)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='hatching_date',
            field=models.DateTimeField(default=datetime.datetime(2023, 8, 6, 22, 14, 20, 859912)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='last_party_date',
            field=models.DateTimeField(default=datetime.datetime(2023, 8, 6, 22, 14, 20, 859939)),
        ),
        migrations.AlterField(
            model_name='totalpoultryrequestquantity',
            name='date',
            field=models.DateTimeField(default=datetime.datetime(2023, 8, 6, 22, 14, 20, 871907)),
        ),
        migrations.CreateModel(
            name='StewardAllocation',
            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)),
                ('number_of_carcasses', models.BigIntegerField(default=0)),
                ('weight_of_carcasses', models.FloatField(default=0)),
                ('final_registration', models.BooleanField(default=False)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='stewardallocation_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='stewardallocation_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('steward', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='steward_steward_allocation', to='panel.steward')),
                ('ware_house', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ware_house_steward_allocation', to='panel.killhousewarehouse')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='KillHousePercentageOfLosses',
            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)),
                ('percent', models.FloatField(default=0)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='killhousepercentageoflosses_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='killhousepercentageoflosses_modifiedby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='KillHouseFreeBarInformation',
            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)),
                ('poultry_name', models.CharField(max_length=100, null=True)),
                ('poultry_mobile', models.CharField(max_length=11, null=True)),
                ('province', models.CharField(max_length=50, null=True)),
                ('city', models.CharField(max_length=50, null=True)),
                ('vet_farm_name', models.CharField(max_length=100, null=True)),
                ('vet_farm_mobile', models.CharField(max_length=11, null=True)),
                ('driver_name', models.CharField(max_length=100, null=True)),
                ('driver_mobile', models.CharField(max_length=11, null=True)),
                ('car', models.JSONField(null=True)),
                ('clearance_code', models.JSONField(null=True)),
                ('quantity', models.BigIntegerField(default=0)),
                ('number_of_carcasses', models.BigIntegerField(default=0)),
                ('weight_of_carcasses', models.FloatField(default=0)),
                ('live_weight', models.FloatField(default=0)),
                ('bar_image', models.CharField(max_length=200, null=True)),
                ('date', models.DateTimeField(null=True)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='killhousefreebarinformation_createdby', to=settings.AUTH_USER_MODEL)),
                ('kill_house', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='free_bar_info_kill_house', to='panel.killhouse')),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='killhousefreebarinformation_modifiedby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
