# Generated by Django 4.2.7 on 2026-01-29 09:53

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='BusinessSearch',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('business_description', models.TextField(help_text='Free text describing business needs, target audience, campaign goals')),
                ('budget_min', models.DecimalField(decimal_places=2, help_text='Minimum budget for influencer collaboration', max_digits=10)),
                ('budget_max', models.DecimalField(decimal_places=2, help_text='Maximum budget for influencer collaboration', max_digits=10)),
                ('top_k', models.IntegerField(default=10, help_text='Number of top matches requested')),
                ('predicted_niche_probabilities', models.JSONField(default=dict, help_text='Predicted niche probabilities from business description')),
                ('predicted_popularity_probabilities', models.JSONField(default=dict, help_text='Predicted popularity tier from budget range')),
                ('matched_influencers', models.JSONField(default=list, help_text='List of matched influencer IDs with similarity scores')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('business_user', models.ForeignKey(help_text='Business user who performed the search', on_delete=django.db.models.deletion.CASCADE, related_name='business_searches', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Business Search',
                'verbose_name_plural': 'Business Searches',
                'ordering': ['-created_at'],
            },
        ),
        migrations.CreateModel(
            name='BusinessProfile',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('company_name', models.CharField(help_text='Official company/brand name', max_length=255)),
                ('company_website', models.URLField(blank=True, help_text='Company website URL', null=True)),
                ('industry', models.CharField(blank=True, help_text='Industry/sector (e.g., Fashion, Tech, Food)', max_length=100)),
                ('company_description', models.TextField(blank=True, help_text='Brief description of the company and products/services')),
                ('contact_email', models.EmailField(blank=True, help_text='Business contact email', max_length=254)),
                ('contact_phone', models.CharField(blank=True, help_text='Business contact phone', max_length=20)),
                ('country', models.CharField(blank=True, help_text='Country of operation', max_length=100)),
                ('city', models.CharField(blank=True, help_text='City of operation', max_length=100)),
                ('typical_budget_min', models.DecimalField(blank=True, decimal_places=2, help_text='Typical minimum budget for influencer collaborations', max_digits=10, null=True)),
                ('typical_budget_max', models.DecimalField(blank=True, decimal_places=2, help_text='Typical maximum budget for influencer collaborations', max_digits=10, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('user', models.OneToOneField(help_text='Link to the business user account', on_delete=django.db.models.deletion.CASCADE, related_name='business_profile', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Business Profile',
                'verbose_name_plural': 'Business Profiles',
            },
        ),
    ]
