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

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


class Migration(migrations.Migration):

    dependencies = [
        ('affiliates_app', '0005_delete_affiliatemarketingresource'),
    ]

    operations = [
        migrations.CreateModel(
            name='AffiliateMarketingResource',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(help_text='Custom document title', max_length=200)),
                ('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)),
                ('pdf_file', models.FileField(help_text='Custom brochure with affiliate info', upload_to='affiliate_marketing/%Y/%m/')),
                ('description', models.TextField(blank=True, help_text='Optional description or notes')),
                ('is_active', models.BooleanField(default=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('affiliate_profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='custom_marketing_resources', to='affiliates_app.affiliateprofile')),
            ],
            options={
                'verbose_name': 'Affiliate Marketing Resource',
                'verbose_name_plural': 'Affiliate Marketing Resources',
                'ordering': ['-created_at'],
            },
        ),
    ]
