# Generated by Django 3.2.13 on 2025-03-10 19:05

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),
        ('LiveStock', '0002_auto_20250309_2143'),
    ]

    operations = [
        migrations.AddField(
            model_name='livestock',
            name='active',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='rancher',
            name='active',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='union',
            name='active',
            field=models.BooleanField(default=True),
        ),
        migrations.AlterField(
            model_name='livestockallocations',
            name='description',
            field=models.TextField(blank=True, null=True),
        ),
        migrations.CreateModel(
            name='CooperativeProductsShare',
            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)),
                ('price', models.IntegerField(default=0)),
                ('shipping_price', models.IntegerField(default=0)),
                ('union_price', models.IntegerField(default=0)),
                ('cooperative_price', models.IntegerField(default=0)),
                ('cooperative', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cooperative_share_product', to='LiveStock.cooperative')),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cooperativeproductsshare_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cooperativeproductsshare_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('product', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cooperative_share_product', to='LiveStock.livestockproduct')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
