# Generated by Django 3.2.13 on 2025-03-09 21:43

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', '0050_auto_20250309_2143'),
        ('LiveStock', '0001_initial'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='rancher',
            name='address',
        ),
        migrations.RemoveField(
            model_name='rancher',
            name='user_bank_info',
        ),
        migrations.AddField(
            model_name='cooperative',
            name='active',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='livestockallocations',
            name='charge',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='livestockallocations',
            name='code',
            field=models.CharField(max_length=200, null=True),
        ),
        migrations.AddField(
            model_name='livestockallocations',
            name='description',
            field=models.TextField(null=True),
        ),
        migrations.AddField(
            model_name='livestockallocations',
            name='place',
            field=models.TextField(null=True),
        ),
        migrations.AddField(
            model_name='livestockproduct',
            name='company_price',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='livestockproduct',
            name='cooperative_price',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='livestockproduct',
            name='heavy_wight',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='livestockproduct',
            name='light_wight',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='livestockproduct',
            name='price',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='livestockproduct',
            name='shipping_price',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='livestockproduct',
            name='union_price',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='livestockrolseproduct',
            name='total_receipt_weight',
            field=models.BigIntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='allow_buy',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='rancher',
            name='camel',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='contractor_code',
            field=models.CharField(max_length=100, null=True),
        ),
        migrations.AddField(
            model_name='rancher',
            name='cow',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='goat',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='has_script',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='rancher',
            name='heavy_livestock',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='horse',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='light_livestock',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='sheep',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='total_weight',
            field=models.BigIntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='weight_allocation_heavy',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='weight_allocation_light',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='weight_quota_heavy',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rancher',
            name='weight_quota_light',
            field=models.IntegerField(default=0),
        ),
        migrations.AlterField(
            model_name='livestock',
            name='birth_day',
            field=models.CharField(max_length=200, null=True),
        ),
        migrations.AlterField(
            model_name='livestock',
            name='registering_date',
            field=models.CharField(max_length=200, null=True),
        ),
        migrations.AlterField(
            model_name='livestockrolseproduct',
            name='total_remain_weight',
            field=models.BigIntegerField(default=0),
        ),
        migrations.CreateModel(
            name='Contractor',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('key', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
                ('create_date', models.DateTimeField(auto_now_add=True)),
                ('modify_date', models.DateTimeField(auto_now=True)),
                ('trash', models.BooleanField(default=False)),
                ('contractor_code', models.CharField(max_length=100, null=True)),
                ('fullname', models.CharField(max_length=200, null=True)),
                ('entity_code', models.CharField(max_length=200, null=True)),
                ('national_id', models.CharField(max_length=100, null=True)),
                ('company_name', models.CharField(max_length=200, null=True)),
                ('number_of_rancher', models.IntegerField(default=0)),
                ('heavy_livestock', models.IntegerField(default=0)),
                ('light_livestock', models.IntegerField(default=0)),
                ('address', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contractor_user', to='authentication.systemaddress')),
                ('cooperative', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contractor_cooperative', to='LiveStock.cooperative')),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contractor_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contractor_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contractor_user', to='authentication.systemuserprofile')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
