# Generated by Django 5.2.17 on 2026-10-02 11:31

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('exams', '0007_nonteachingday'),
    ]

    operations = [
        migrations.CreateModel(
            name='SystemState',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('state', models.CharField(choices=[('ACTIVE', 'Active - normal operation'), ('DORMANT', 'Dormant - no work expected, cron idle'), ('MAINT', 'Maintenance - teacher-set, cron idle')], default='ACTIVE', max_length=8)),
                ('last_activity', models.DateTimeField(blank=True, help_text='Last ingest, teacher command, or reflection.', null=True)),
                ('dormant_since', models.DateTimeField(blank=True, null=True)),
                ('idle_threshold_days', models.PositiveSmallIntegerField(default=14)),
                ('note', models.CharField(blank=True, max_length=200)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name_plural': 'System state',
            },
        ),
    ]
