# Generated by Django 5.2.11 on 2026-05-06 14:33

import django.utils.timezone
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('expat_life', '0032_alter_refundabledeposit_profile_type'),
    ]

    operations = [
        migrations.CreateModel(
            name='MarketingResource',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('target_audience', models.CharField(choices=[('foreigners', 'Foreigners'), ('rentals', 'Rentals'), ('dating', 'Dating'), ('assistants', 'Assistants'), ('affiliates', 'Affiliates'), ('hosting', 'Hosting'), ('properties', 'Properties')], help_text='Who is this resource for?', max_length=20)),
                ('language', models.CharField(choices=[('en', 'English'), ('nl', 'Dutch'), ('zh', 'Chinese'), ('ja', 'Japanese'), ('fr', 'French'), ('es', 'Spanish'), ('it', 'Italian'), ('de', 'German'), ('pt', 'Portuguese'), ('ru', 'Russian'), ('hi', 'Hindi')], default='en', max_length=2)),
                ('title', models.CharField(help_text="Title of the resource (e.g., 'Sri Lanka Travel Guide')", max_length=200)),
                ('brochure_pdf', models.FileField(blank=True, null=True, upload_to='marketing/brochures/%Y/%m/')),
                ('video_link', models.URLField(blank=True, help_text='YouTube/Vimeo URL', null=True)),
                ('audio_link', models.URLField(blank=True, help_text='Podcast or audio file URL', null=True)),
                ('is_active', models.BooleanField(default=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'Marketing Resource',
                'verbose_name_plural': 'Marketing Resources',
                'ordering': ['-created_at'],
                'unique_together': {('target_audience', 'language', 'title')},
            },
        ),
    ]
