# Generated by Django 3.2.13 on 2024-11-26 19:25

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', '0193_auto_20241120_0826'),
    ]

    operations = [
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='accepted_allocated_quantity',
            new_name='free_buying_carcasses_quantity',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='accepted_allocated_weight',
            new_name='free_buying_carcasses_weight',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='allocated_quantity',
            new_name='loss_weight',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='allocated_quantity_from',
            new_name='out_province_allocated_quantity',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='allocated_weight',
            new_name='out_province_allocated_weight',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='allocated_weight_from',
            new_name='pos_allocated_weight',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='free_buying_bars_carcasses_quantity',
            new_name='province_allocated_quantity',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='free_buying_bars_carcasses_weight',
            new_name='province_allocated_weight',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='free_buying_bars_quantity',
            new_name='province_free_carcasses_quantity',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='free_buying_bars_weight',
            new_name='province_free_carcasses_weight',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='free_sale_quantity',
            new_name='province_governmental_carcasses_quantity',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='free_sale_weight',
            new_name='province_governmental_carcasses_weight',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='live_bars_carcasses_quantity',
            new_name='receive_free_carcasses_quantity',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='live_bars_carcasses_weight',
            new_name='receive_free_carcasses_weight',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='live_bars_quantity',
            new_name='receive_governmental_carcasses_quantity',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='live_bars_weight',
            new_name='receive_governmental_carcasses_weight',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='number_of_accepted_allocations',
            new_name='total_carcasses_quantity',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='number_of_free_buying_bars',
            new_name='total_carcasses_weight',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='number_of_live_bars',
            new_name='total_free_bars_carcasses_quantity',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='number_of_rejected_allocations',
            new_name='total_free_bars_carcasses_weight',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='number_of_returned_allocations',
            new_name='total_governmental_carcasses_quantity',
        ),
        migrations.RenameField(
            model_name='rolesproducts',
            old_name='rejected_allocated_quantity',
            new_name='total_governmental_carcasses_weight',
        ),
        migrations.RemoveField(
            model_name='rolesproducts',
            name='rejected_allocated_weight',
        ),
        migrations.RemoveField(
            model_name='rolesproducts',
            name='returned_allocated_quantity',
        ),
        migrations.RemoveField(
            model_name='rolesproducts',
            name='returned_allocated_weight',
        ),
        migrations.RemoveField(
            model_name='rolesproducts',
            name='total_number_of_bars',
        ),
        migrations.RemoveField(
            model_name='rolesproducts',
            name='total_quantity',
        ),
        migrations.RemoveField(
            model_name='rolesproducts',
            name='total_weight',
        ),
        migrations.RemoveField(
            model_name='rolesproducts',
            name='weight_ave',
        ),
        migrations.RemoveField(
            model_name='stewardallocation',
            name='steward',
        ),
        migrations.AddField(
            model_name='coldhouseallocations',
            name='allocation_type',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AddField(
            model_name='coldhouseallocations',
            name='kill_house',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cold_house_allocations_kill_house', to='panel.killhouse'),
        ),
        migrations.AddField(
            model_name='coldhouseallocations',
            name='product',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cold_house_allocations_product', to='panel.rolesproducts'),
        ),
        migrations.AddField(
            model_name='killhousebarlimitation',
            name='allow',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='killhousefreebarinformation',
            name='weight_loss',
            field=models.FloatField(default=0),
        ),
        migrations.AddField(
            model_name='killrequest',
            name='automatic_accept',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='newproduct',
            name='image',
            field=models.CharField(max_length=500, null=True),
        ),
        migrations.AddField(
            model_name='posmachine',
            name='company_name',
            field=models.CharField(max_length=200, null=True),
        ),
        migrations.AddField(
            model_name='posmachine',
            name='last_check',
            field=models.DateTimeField(null=True),
        ),
        migrations.AddField(
            model_name='rolesproducts',
            name='approved_price',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rolesproducts',
            name='approved_price_status',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='rolesproducts',
            name='free_price',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rolesproducts',
            name='name',
            field=models.CharField(max_length=300, null=True),
        ),
        migrations.AddField(
            model_name='rolesproducts',
            name='weight_average',
            field=models.FloatField(default=0),
        ),
        migrations.AddField(
            model_name='stewardallocation',
            name='approved_price_status',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='stewardallocation',
            name='sale_type',
            field=models.CharField(max_length=100, null=True),
        ),
        migrations.AlterField(
            model_name='functionexecutor',
            name='compare_time',
            field=models.DateTimeField(default=datetime.datetime(2024, 11, 26, 19, 24, 59, 667462)),
        ),
        migrations.AlterField(
            model_name='killhousepurchaserequest',
            name='limitation_number',
            field=models.BigIntegerField(default=0),
        ),
        migrations.AlterField(
            model_name='newproduct',
            name='approved_price',
            field=models.IntegerField(default=0),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='assignment_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2024, 11, 26, 19, 24, 59, 615933)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='city_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2024, 11, 26, 19, 24, 59, 615933)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='kill_house_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2024, 11, 26, 19, 24, 59, 615933)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='province_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2024, 11, 26, 19, 24, 59, 615933)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='date_of_register',
            field=models.DateTimeField(default=datetime.datetime(2024, 11, 26, 19, 24, 59, 619437)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='hatching_date',
            field=models.DateTimeField(default=datetime.datetime(2024, 11, 26, 19, 24, 59, 619437)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='last_party_date',
            field=models.DateTimeField(default=datetime.datetime(2024, 11, 26, 19, 24, 59, 619437)),
        ),
        migrations.AlterField(
            model_name='stewardallocation',
            name='to_steward',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='allocation_to_steward', to='panel.guilds'),
        ),
        migrations.AlterField(
            model_name='stewardfreebarinformation',
            name='steward',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='free_bar_info_steward', to='panel.guilds'),
        ),
        migrations.AlterField(
            model_name='stewardfreesalebarinformation',
            name='steward',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='free_sale_bar_info_steward', to='panel.guilds'),
        ),
        migrations.AlterField(
            model_name='totalpoultryrequestquantity',
            name='date',
            field=models.DateTimeField(default=datetime.datetime(2024, 11, 26, 19, 24, 59, 626948)),
        ),
        migrations.CreateModel(
            name='ProductPricingType',
            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)),
                ('province', models.BooleanField(default=False)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='productpricingtype_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='productpricingtype_modifiedby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PosMachineTransactions',
            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)),
                ('check_id', models.CharField(max_length=100, null=True)),
                ('mobile', models.CharField(max_length=100, null=True)),
                ('natcode', models.CharField(max_length=100, null=True)),
                ('fullname', models.CharField(max_length=100, null=True)),
                ('date', models.DateTimeField(null=True)),
                ('price', models.BigIntegerField(default=0)),
                ('paid', models.BooleanField(default=False)),
                ('checkout', models.BooleanField(default=False)),
                ('hasTry', models.BooleanField(default=False)),
                ('state', models.IntegerField(default=0)),
                ('posProvider', models.CharField(max_length=100, null=True)),
                ('result', models.CharField(max_length=100, null=True)),
                ('refnum', models.CharField(max_length=100, null=True)),
                ('terminal', models.CharField(max_length=100, null=True)),
                ('cart', models.CharField(max_length=100, null=True)),
                ('weight', models.IntegerField(default=0)),
                ('lng', models.FloatField(default=0)),
                ('lot', models.FloatField(default=0)),
                ('additional', models.CharField(max_length=200, null=True)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='posmachinetransactions_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='posmachinetransactions_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('pos', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='roles_products_pos_transactions', to='panel.posmachine')),
                ('product', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='roles_products_pos_transactions', to='panel.rolesproducts')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='OutProvinceSaleLimitation',
            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=False)),
                ('kill_house', models.FloatField(default=0)),
                ('steward', models.FloatField(default=0)),
                ('guild', models.FloatField(default=0)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='outprovincesalelimitation_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='outprovincesalelimitation_modifiedby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='KillHouseStewardGuildRelation',
            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)),
                ('allocation_limit', models.IntegerField(default=0)),
                ('allocation_type', models.CharField(max_length=100, null=True)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='killhousestewardguildrelation_createdby', to=settings.AUTH_USER_MODEL)),
                ('guild', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='guild_relation', to='panel.guilds')),
                ('kill_house', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='kill_house_relation', to='panel.killhouse')),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='killhousestewardguildrelation_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('steward', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='steward_relation', to='panel.guilds')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='BroadcastPrice',
            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=False)),
                ('kill_house_price', models.FloatField(default=0)),
                ('steward_price', models.FloatField(default=0)),
                ('guild_price', models.FloatField(default=0)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='broadcastprice_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='broadcastprice_modifiedby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='AgeNotificationPoultry',
            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)),
                ('message', models.TextField()),
                ('poultry_age', models.CharField(max_length=2)),
                ('hour_send', models.CharField(max_length=2)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='agenotificationpoultry_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='agenotificationpoultry_modifiedby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
