# Generated by Django 4.2.7 on 2025-05-13 21:45

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ("core", "0003_apitoken"),
    ]

    operations = [
        migrations.CreateModel(
            name="WebsitePageVisit",
            fields=[
                ("id", models.AutoField(primary_key=True, serialize=False)),
                ("url_path", models.TextField()),
                ("url_parameters", models.JSONField(blank=True, null=True)),
                ("timestamp", models.DateTimeField(auto_now=True, db_index=True)),
                (
                    "user",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="website_page_visits",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            options={
                "db_table": "django_website_page_visits",
            },
        ),
    ]
