# Generated by Django 5.2.10 on 2026-01-12 01:01

import apps.core.choices.fields
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("rides", "0039_add_photographer_to_photos"),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name="RideSubType",
            fields=[
                ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
                (
                    "name",
                    models.CharField(help_text="Name of the ride sub-type (e.g., 'Flying Coaster')", max_length=100),
                ),
                (
                    "category",
                    apps.core.choices.fields.RichChoiceField(
                        allow_deprecated=False,
                        choice_group="categories",
                        choices=[
                            ("RC", "Roller Coaster"),
                            ("DR", "Dark Ride"),
                            ("FR", "Flat Ride"),
                            ("WR", "Water Ride"),
                            ("TR", "Transport Ride"),
                            ("OT", "Other"),
                        ],
                        domain="rides",
                        help_text="Ride category this sub-type belongs to",
                        max_length=2,
                    ),
                ),
                ("description", models.TextField(blank=True, help_text="Description of this ride sub-type")),
                (
                    "created_by",
                    models.ForeignKey(
                        blank=True,
                        help_text="User who created this sub-type",
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        related_name="created_ride_sub_types",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            options={
                "verbose_name": "Ride Sub-Type",
                "verbose_name_plural": "Ride Sub-Types",
                "ordering": ["category", "name"],
                "abstract": False,
                "unique_together": {("category", "name")},
            },
        ),
    ]
