# Generated by Django 5.2.9 on 2025-12-29 09:35

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("macro", "0003_rename_observed_at_to_reporting_period_and_add_period_type"),
    ]

    operations = [
        migrations.AlterModelOptions(
            name="macroindicator",
            options={"ordering": ["-reporting_period", "-revision_number"]},
        ),
        migrations.RenameIndex(
            model_name="macroindicator",
            new_name="macro_indic_code_7118dc_idx",
            old_name="macro_code_reporting_idx",
        ),
        migrations.RenameIndex(
            model_name="macroindicator",
            new_name="macro_indic_period__ab5688_idx",
            old_name="macro_period_type_idx",
        ),
        migrations.AlterField(
            model_name="macroindicator",
            name="period_type",
            field=models.CharField(
                choices=[
                    ("D", "日"),
                    ("W", "周"),
                    ("M", "月"),
                    ("Q", "季"),
                    ("H", "半"),
                    ("Y", "年"),
                ],
                default="D",
                help_text="期间类型",
                max_length=1,
            ),
        ),
        migrations.AlterField(
            model_name="macroindicator",
            name="reporting_period",
            field=models.DateField(
                db_index=True, help_text="报告期（时点数据=观测日，期间数据=期末日）"
            ),
        ),
    ]
