# Generated by Django 6.0 on 2025-12-13 15:44

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='CareerTestResult',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('ym_client_id', models.CharField(blank=True, db_index=True, max_length=64, null=True)),
                ('ip_address', models.GenericIPAddressField(blank=True, null=True)),
                ('user_agent', models.TextField(blank=True, null=True)),
                ('answers', models.JSONField(default=dict)),
                ('profile', models.CharField(choices=[('R', 'Практик'), ('I', 'Исследователь'), ('A', 'Творец'), ('S', 'Социальный'), ('E', 'Лидер'), ('C', 'Организатор')], max_length=1)),
                ('top3_profiles', models.JSONField(default=list)),
                ('recommended_ege_sets', models.JSONField(default=list)),
                ('uploaded_to_metrica', models.BooleanField(default=False)),
            ],
            options={
                'verbose_name': 'Результат теста',
                'verbose_name_plural': 'Результаты тестов',
                'ordering': ['-created_at'],
                'indexes': [models.Index(fields=['ym_client_id', '-created_at'], name='career_test_ym_clie_23547c_idx')],
            },
        ),
    ]
