# Generated by Django 4.2.20 on 2025-05-05 11:54

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('herd', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='LiveStock',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_date', models.DateTimeField(auto_now_add=True)),
                ('modify_date', models.DateTimeField(auto_now=True)),
                ('trash', models.BooleanField(default=False)),
                ('type', models.CharField(choices=[('L', 'Light'), ('H', 'Heavy')], max_length=1)),
                ('species', models.CharField(choices=[], max_length=1)),
                ('birthdate', models.DateTimeField(null=True)),
                ('gender', models.IntegerField(choices=[(1, 'male'), (2, 'female')], default=1)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_createdby', to=settings.AUTH_USER_MODEL)),
                ('herd', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='live_stock_herd', to='herd.herd')),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_modifiedby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
