# Generated by Django 6.0.3 on 2026-03-24 18:56

import django.db.models.deletion
import django.utils.timezone
import pathlib
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name="Image",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "path",
                    models.FilePathField(
                        path=pathlib.PurePosixPath("/home/miky/Imágenes")
                    ),
                ),
                ("favorite", models.BooleanField(default=False)),
                (
                    "last_visited",
                    models.DateTimeField(default=django.utils.timezone.now),
                ),
                ("visits", models.IntegerField(default=0)),
                (
                    "user",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
        ),
    ]
