# Generated by Django 5.2.4 on 2025-09-15 19:12

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("pages", "0003_user_data_field"),
    ]

    operations = [
        migrations.CreateModel(
            name="ViewHistory",
            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)),
                ("path", models.CharField(max_length=500)),
                ("method", models.CharField(max_length=10)),
                ("status_code", models.PositiveSmallIntegerField()),
                ("status_text", models.CharField(blank=True, max_length=100)),
                ("error_message", models.TextField(blank=True)),
                ("view_name", models.CharField(blank=True, max_length=200)),
                ("visited_at", models.DateTimeField(auto_now_add=True)),
            ],
            options={
                "verbose_name": "View History",
                "verbose_name_plural": "View Histories",
                "ordering": ["-visited_at"],
            },
        ),
    ]
