# Generated by Django 5.2.7 on 2026-01-23 17:20

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0014_appsetting'),
    ]

    operations = [
        migrations.CreateModel(
            name='Banner',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200, verbose_name='Title (EN)')),
                ('title_ar', models.CharField(blank=True, max_length=200, verbose_name='Title (AR)')),
                ('subtitle', models.CharField(blank=True, max_length=255, verbose_name='Subtitle (EN)')),
                ('subtitle_ar', models.CharField(blank=True, max_length=255, verbose_name='Subtitle (AR)')),
                ('image', models.ImageField(upload_to='banners/', verbose_name='Banner Image')),
                ('link', models.URLField(blank=True, help_text='Internal or external URL', null=True, verbose_name='Link URL')),
                ('is_active', models.BooleanField(default=True, verbose_name='Is Active')),
                ('order', models.PositiveIntegerField(default=0, verbose_name='Order')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'verbose_name': 'Banner',
                'verbose_name_plural': 'Banners',
                'ordering': ['order', '-created_at'],
            },
        ),
    ]
