# Generated by Django 4.2.10 on 2025-03-19 15:05

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="HeroSlide",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "title",
                    models.CharField(
                        help_text="Title to display on the slide", max_length=200
                    ),
                ),
                (
                    "subtitle",
                    models.TextField(
                        blank=True, help_text="Optional subtitle or description"
                    ),
                ),
                (
                    "image",
                    models.ImageField(
                        help_text="Image for the slide (recommended size: 1920x1080)",
                        upload_to="hero_slides/",
                    ),
                ),
                (
                    "button_text",
                    models.CharField(
                        blank=True,
                        help_text="Optional call-to-action button text",
                        max_length=50,
                    ),
                ),
                (
                    "button_url",
                    models.CharField(
                        blank=True,
                        help_text="URL for the call-to-action button",
                        max_length=200,
                    ),
                ),
                (
                    "order",
                    models.PositiveIntegerField(
                        default=0,
                        help_text="Order in which the slide appears (lower numbers appear first)",
                    ),
                ),
                (
                    "is_active",
                    models.BooleanField(
                        default=True,
                        help_text="Whether this slide is currently displayed",
                    ),
                ),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
            ],
            options={
                "verbose_name": "Hero Slide",
                "verbose_name_plural": "Hero Slides",
                "ordering": ["order", "-created_at"],
            },
        ),
    ]
