# Generated by Django 5.2.10 on 2026-01-15 20:17

import uuid

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


class Migration(migrations.Migration):

    dependencies = [
        ("django_ai_admin_chat", "0002_chathistory"),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name="chathistory",
            name="session_id",
            field=models.UUIDField(
                db_index=True, default=uuid.uuid4, editable=False, help_text="Unikalny identyfikator sesji chatu"
            ),
        ),
        migrations.AddIndex(
            model_name="chathistory",
            index=models.Index(fields=["session_id", "-created_at"], name="django_ai_a_session_46b567_idx"),
        ),
    ]
