# Generated by Django 5.2.9 on 2025-12-17 00:42

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("core", "0003_initial"),
    ]

    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={
                "verbose_name": "SQL Report",
                "verbose_name_plural": "SQL Reports",
                "db_table": "core_sqlreport",
                "ordering": ("name",),
            },
        ),
    ]
