# Generated by Django 3.2.13 on 2025-12-16 16:41

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('panel', '0377_auto_20251215_1644'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='representative',
            name='Kill_house',
        ),
        migrations.AddField(
            model_name='representative',
            name='active',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='representative',
            name='free_limitation',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='representative',
            name='free_limitation_weight',
            field=models.FloatField(default=0),
        ),
        migrations.AddField(
            model_name='representative',
            name='governmental_limitation',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='representative',
            name='governmental_limitation_weight',
            field=models.FloatField(default=0),
        ),
        migrations.AddField(
            model_name='representative',
            name='kill_house',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='kill_house_representative', to='panel.killhouse'),
        ),
        migrations.AddField(
            model_name='representative',
            name='limitation',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='representative',
            name='total_selling_warehouse_free_weight',
            field=models.FloatField(default=0),
        ),
        migrations.AddField(
            model_name='representative',
            name='total_selling_warehouse_governmental_weight',
            field=models.FloatField(default=0),
        ),
        migrations.AddField(
            model_name='representative',
            name='total_selling_warehouse_weight',
            field=models.FloatField(default=0),
        ),
        migrations.AddField(
            model_name='steward',
            name='city',
            field=models.CharField(max_length=100, null=True),
        ),
        migrations.AlterField(
            model_name='functionexecutor',
            name='compare_time',
            field=models.DateTimeField(default=datetime.datetime(2025, 12, 16, 16, 40, 15, 201534)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='assignment_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2025, 12, 16, 16, 40, 15, 153497)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='city_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2025, 12, 16, 16, 40, 15, 153497)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='kill_house_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2025, 12, 16, 16, 40, 15, 153497)),
        ),
        migrations.AlterField(
            model_name='operatorlasttimeenter',
            name='province_operator_last_time_check',
            field=models.DateTimeField(default=datetime.datetime(2025, 12, 16, 16, 40, 15, 153497)),
        ),
        migrations.AlterField(
            model_name='posdevicesession',
            name='session_create_date',
            field=models.DateTimeField(default=datetime.datetime(2025, 12, 16, 16, 40, 15, 280973)),
        ),
        migrations.AlterField(
            model_name='posdevicesession',
            name='session_last_seen_date',
            field=models.DateTimeField(default=datetime.datetime(2025, 12, 16, 16, 40, 15, 280973)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='date_of_register',
            field=models.DateTimeField(default=datetime.datetime(2025, 12, 16, 16, 40, 15, 153497)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='hatching_date',
            field=models.DateTimeField(default=datetime.datetime(2025, 12, 16, 16, 40, 15, 153497)),
        ),
        migrations.AlterField(
            model_name='poultry',
            name='last_party_date',
            field=models.DateTimeField(default=datetime.datetime(2025, 12, 16, 16, 40, 15, 153497)),
        ),
        migrations.AlterField(
            model_name='totalpoultryrequestquantity',
            name='date',
            field=models.DateTimeField(default=datetime.datetime(2025, 12, 16, 16, 40, 15, 169523)),
        ),
        migrations.CreateModel(
            name='RequestLog',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('method', models.CharField(max_length=10)),
                ('path', models.TextField()),
                ('query_params', models.JSONField(blank=True, null=True)),
                ('body', models.JSONField(blank=True, null=True)),
                ('headers', models.JSONField(blank=True, null=True)),
                ('status_code', models.PositiveIntegerField(null=True)),
                ('ip_address', models.GenericIPAddressField(blank=True, null=True)),
                ('duration', models.FloatField(help_text='Request duration in seconds')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
