# Generated by Django 5.2.17 on 2026-10-29 19:25

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='MHDailyGate',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('student_ref', models.CharField(db_index=True, help_text='exams.Student.code (not FK — cross-app safe)', max_length=32)),
                ('date', models.DateField(db_index=True)),
                ('winner', models.CharField(choices=[('MISSION', 'Mission (MCQ / paper upload)'), ('DIARY', 'Diary (star rating)')], max_length=10)),
                ('decided_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'mh_daily_gate',
                'ordering': ['-date'],
                'indexes': [models.Index(fields=['student_ref', '-date'], name='mh_daily_ga_student_19c309_idx')],
                'unique_together': {('student_ref', 'date')},
            },
        ),
    ]
