# Generated by Django 4.2.29 on 2026-06-20 04:19

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
import scrobbles.models
import uuid


class Migration(migrations.Migration):

    dependencies = [
        ("discgolf", "0001_initial"),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ("scrobbles", "0098_scrobble_long_play_last_scrobble"),
    ]

    operations = [
        migrations.AddField(
            model_name="favoritemedia",
            name="disc_golf",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to="discgolf.discgolfcourse",
            ),
        ),
        migrations.AddField(
            model_name="scrobble",
            name="disc_golf",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.DO_NOTHING,
                to="discgolf.discgolfcourse",
            ),
        ),
        migrations.AlterField(
            model_name="favoritemedia",
            name="media_type",
            field=models.CharField(
                choices=[
                    ("Video", "Video"),
                    ("Track", "Track"),
                    ("PodcastEpisode", "Podcast episode"),
                    ("SportEvent", "Sport event"),
                    ("Book", "Book"),
                    ("Paper", "Paper"),
                    ("VideoGame", "Video game"),
                    ("BoardGame", "Board game"),
                    ("GeoLocation", "GeoLocation"),
                    ("Trail", "Trail"),
                    ("Beer", "Beer"),
                    ("Puzzle", "Puzzle"),
                    ("Food", "Food"),
                    ("Task", "Task"),
                    ("WebPage", "Web Page"),
                    ("LifeEvent", "Life event"),
                    ("Mood", "Mood"),
                    ("BrickSet", "Brick set"),
                    ("Channel", "Channel"),
                    ("DiscGolf", "Disc golf"),
                ],
                max_length=20,
            ),
        ),
        migrations.AlterField(
            model_name="scrobble",
            name="media_type",
            field=models.CharField(
                choices=[
                    ("Video", "Video"),
                    ("Track", "Track"),
                    ("PodcastEpisode", "Podcast episode"),
                    ("SportEvent", "Sport event"),
                    ("Book", "Book"),
                    ("Paper", "Paper"),
                    ("VideoGame", "Video game"),
                    ("BoardGame", "Board game"),
                    ("GeoLocation", "GeoLocation"),
                    ("Trail", "Trail"),
                    ("Beer", "Beer"),
                    ("Puzzle", "Puzzle"),
                    ("Food", "Food"),
                    ("Task", "Task"),
                    ("WebPage", "Web Page"),
                    ("LifeEvent", "Life event"),
                    ("Mood", "Mood"),
                    ("BrickSet", "Brick set"),
                    ("Channel", "Channel"),
                    ("DiscGolf", "Disc golf"),
                ],
                default="Video",
                max_length=20,
            ),
        ),
        migrations.CreateModel(
            name="UDiscCSVImport",
            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(default=uuid.uuid4, editable=False)),
                ("processing_started", models.DateTimeField(blank=True, null=True)),
                ("processed_finished", models.DateTimeField(blank=True, null=True)),
                ("process_log", models.TextField(blank=True, null=True)),
                ("process_count", models.IntegerField(blank=True, null=True)),
                ("error_log", models.TextField(blank=True, null=True)),
                (
                    "csv_file",
                    models.FileField(
                        blank=True,
                        null=True,
                        upload_to=scrobbles.models.UDiscCSVImport.get_path,
                    ),
                ),
                (
                    "original_filename",
                    models.CharField(blank=True, max_length=255, null=True),
                ),
                (
                    "user",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.DO_NOTHING,
                        related_name="scrobbles_udisccsvimport_set",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            options={
                "verbose_name": "uDisc CSV Import",
            },
        ),
    ]
