# Generated by Django 5.2.9 on 2025-12-17 02:56
from django.db import migrations, models


class Migration(migrations.Migration):
    initial = True

    dependencies = [
        ("core", "0005_remove_sqlreport_state"),
    ]

    operations = [
        migrations.SeparateDatabaseAndState(
            state_operations=[
                migrations.CreateModel(
                    name="SQLReport",
                    fields=[
                        (
                            "id",
                            models.BigAutoField(
                                auto_created=True,
                                primary_key=True,
                                serialize=False,
                                verbose_name="ID",
                            ),
                        ),
                        ("is_seed_data", models.BooleanField(default=False, editable=False)),
                        ("is_user_data", models.BooleanField(default=False, editable=False)),
                        ("is_deleted", models.BooleanField(default=False, editable=False)),
                        ("name", models.CharField(max_length=255, unique=True)),
                        ("database_alias", models.CharField(default="default", max_length=128)),
                        ("query", models.TextField()),
                        ("last_run_at", models.DateTimeField(blank=True, null=True)),
                        ("last_run_duration", models.DurationField(blank=True, null=True)),
                        ("created_at", models.DateTimeField(auto_now_add=True)),
                        ("updated_at", models.DateTimeField(auto_now=True)),
                    ],
                    options={
                        "db_table": "core_sqlreport",
                        "ordering": ("name",),
                        "verbose_name": "SQL Report",
                        "verbose_name_plural": "SQL Reports",
                    },
                )
            ],
            database_operations=[],
        ),
    ]
