# Generated by Django 5.2.1 on 2026-01-04 15:19

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('cms', '0004_contact'),
    ]

    operations = [
        migrations.CreateModel(
            name='Region',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(help_text='Full name of the region, e.g., United Kingdom', max_length=100)),
                ('code', models.CharField(help_text="URL prefix code, e.g., 'uk', 'ca', 'uae'", max_length=10, unique=True)),
                ('is_active', models.BooleanField(default=True)),
                ('is_default', models.BooleanField(default=False, help_text='Set one region as default')),
                ('flag_icon', models.CharField(blank=True, help_text='CSS class for flag icon if available', max_length=50)),
            ],
        ),
        migrations.AddField(
            model_name='blogpost',
            name='regions',
            field=models.ManyToManyField(blank=True, help_text='Regions where this post should appear. Leave empty for all.', to='cms.region'),
        ),
        migrations.AddField(
            model_name='project',
            name='regions',
            field=models.ManyToManyField(blank=True, help_text='Regions where this project is showcased. Leave empty for all.', to='cms.region'),
        ),
        migrations.AddField(
            model_name='service',
            name='regions',
            field=models.ManyToManyField(blank=True, help_text='Regions where this service is available. Leave empty for all.', to='cms.region'),
        ),
        migrations.AddField(
            model_name='teammember',
            name='regions',
            field=models.ManyToManyField(blank=True, help_text='Regions where this team member is active. Leave empty for all.', to='cms.region'),
        ),
        migrations.AddField(
            model_name='testimonial',
            name='regions',
            field=models.ManyToManyField(blank=True, help_text='Regions for this testimonial. Leave empty for all.', to='cms.region'),
        ),
    ]
