# Generated by Django 3.2.13 on 2025-03-04 13:40

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', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='LiveStock',
            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)),
                ('national_id_livestock_code', models.CharField(max_length=200, null=True)),
                ('herd_code', models.CharField(max_length=100, null=True)),
                ('type', models.CharField(max_length=200, null=True)),
                ('birth_day', models.DateField(null=True)),
                ('gender', models.CharField(max_length=100, null=True)),
                ('contractor_code', models.CharField(max_length=100, null=True)),
                ('unique_identifier', models.CharField(max_length=100, null=True)),
                ('agent', models.CharField(max_length=100, null=True)),
                ('registering_user', models.CharField(max_length=200, null=True)),
                ('registering_date', models.DateTimeField(null=True)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='livestock_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='livestock_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('rancher', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='LiveStock.rancher')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
