# Generated by Django 5.1.6 on 2026-07-31 17:40

import django.db.models.deletion
import uuid
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0010_paymentgateway'),
        ('users', '0003_customuser_referral_code_customuser_referred_by'),
    ]

    operations = [
        migrations.CreateModel(
            name='EntertainmentBrand',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=150)),
                ('slug', models.SlugField(blank=True, max_length=160, unique=True)),
                ('logo', models.ImageField(blank=True, null=True, upload_to='brands/logos/')),
                ('website', models.URLField(blank=True)),
                ('description', models.TextField(blank=True)),
                ('category', models.CharField(choices=[('music', 'Music'), ('film', 'Film & TV'), ('sports', 'Sports'), ('fashion', 'Fashion'), ('gaming', 'Gaming'), ('lifestyle', 'Lifestyle'), ('media', 'Media & Publishing'), ('other', 'Other')], default='other', max_length=30)),
                ('status', models.CharField(choices=[('trusted', 'Trusted'), ('pending', 'Pending Review'), ('suspended', 'Suspended'), ('rejected', 'Rejected')], default='pending', max_length=20)),
                ('is_verified', models.BooleanField(default=False)),
                ('is_featured', models.BooleanField(default=False)),
                ('trust_score', models.PositiveIntegerField(default=0, help_text='0 - 100')),
                ('contact_email', models.EmailField(blank=True, max_length=254)),
                ('contact_phone', models.CharField(blank=True, max_length=30)),
                ('instagram', models.URLField(blank=True)),
                ('twitter', models.URLField(blank=True)),
                ('youtube', models.URLField(blank=True)),
                ('linkedin', models.URLField(blank=True)),
                ('notes', models.TextField(blank=True, help_text='Internal notes for admins')),
                ('display_order', models.PositiveIntegerField(default=10)),
                ('is_active', models.BooleanField(default=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('verified_at', models.DateTimeField(blank=True, null=True)),
            ],
            options={
                'verbose_name': 'Entertainment Brand',
                'verbose_name_plural': 'Entertainment Brands',
                'ordering': ['display_order', 'name'],
            },
        ),
        migrations.CreateModel(
            name='BrandPartnership',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('partnership_type', models.CharField(choices=[('endorsement', 'Endorsement'), ('sponsorship', 'Sponsorship'), ('collaboration', 'Collaboration'), ('ambassador', 'Brand Ambassador')], max_length=30)),
                ('start_date', models.DateField(blank=True, null=True)),
                ('end_date', models.DateField(blank=True, null=True)),
                ('is_active', models.BooleanField(default=True)),
                ('notes', models.TextField(blank=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('celebrity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='brand_partnerships', to='users.profile')),
                ('brand', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='partnerships', to='core.entertainmentbrand')),
            ],
            options={
                'ordering': ['-created_at'],
                'unique_together': {('brand', 'celebrity', 'partnership_type')},
            },
        ),
    ]
