# Generated by Django 4.2.26 on 2025-12-03 00:16

from django.db import migrations, models
import django_extensions.db.fields
import taggit.managers
import uuid


class Migration(migrations.Migration):

    dependencies = [
        ("scrobbles", "0070_rename_brickset_scrobble_brick_set"),
    ]

    operations = [
        migrations.CreateModel(
            name="ScrobblableItem",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "created",
                    django_extensions.db.fields.CreationDateTimeField(
                        auto_now_add=True, verbose_name="created"
                    ),
                ),
                (
                    "modified",
                    django_extensions.db.fields.ModificationDateTimeField(
                        auto_now=True, verbose_name="modified"
                    ),
                ),
                (
                    "uuid",
                    models.UUIDField(
                        blank=True,
                        default=uuid.uuid4,
                        editable=False,
                        null=True,
                    ),
                ),
                (
                    "title",
                    models.CharField(blank=True, max_length=255, null=True),
                ),
                ("description", models.TextField(blank=True, null=True)),
                (
                    "base_run_time_seconds",
                    models.IntegerField(blank=True, null=True),
                ),
            ],
            options={
                "get_latest_by": "modified",
                "abstract": False,
            },
        ),
        migrations.AddField(
            model_name="scrobble",
            name="item",
            field=models.ForeignKey(
                default=None,
                null=True,
                on_delete=models.deletion.CASCADE,
                related_name="scrobbles",
                to="scrobbles.scrobblableitem",
            ),
            preserve_default=False,
        ),
    ]
