# Generated by Django 5.2.9 on 2025-12-20 12:29

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('system', '0002_add_global_settings_models'),
    ]

    operations = [
        migrations.RenameIndex(
            model_name='aiprompt',
            new_name='igny8_ai_pr_is_cust_5d7a72_idx',
            old_name='igny8_ai_pr_is_cust_idx',
        ),
        migrations.RenameIndex(
            model_name='authorprofile',
            new_name='igny8_autho_is_cust_d163e6_idx',
            old_name='igny8_autho_is_cust_idx',
        ),
        migrations.RenameIndex(
            model_name='strategy',
            new_name='igny8_strat_is_cust_4b3c4b_idx',
            old_name='igny8_strat_is_cust_idx',
        ),
        migrations.AlterField(
            model_name='aiprompt',
            name='default_prompt',
            field=models.TextField(blank=True, help_text='Global default prompt - used for reset to default'),
        ),
        migrations.AlterField(
            model_name='aiprompt',
            name='prompt_value',
            field=models.TextField(help_text='Current prompt text (customized or default)'),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='anthropic_api_key',
            field=models.CharField(blank=True, help_text='Platform Anthropic API key - used by ALL accounts', max_length=500),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='anthropic_model',
            field=models.CharField(default='claude-3-sonnet-20240229', help_text='Default Anthropic model (accounts can override if plan allows)', max_length=100),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='dalle_api_key',
            field=models.CharField(blank=True, help_text='Platform DALL-E API key - used by ALL accounts (can be same as OpenAI)', max_length=500),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='dalle_model',
            field=models.CharField(default='dall-e-3', help_text='Default DALL-E model (accounts can override if plan allows)', max_length=100),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='dalle_quality',
            field=models.CharField(choices=[('standard', 'Standard'), ('hd', 'HD')], default='standard', help_text='Default image quality (accounts can override if plan allows)', max_length=20),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='dalle_size',
            field=models.CharField(default='1024x1024', help_text='Default image size (accounts can override if plan allows)', max_length=20),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='dalle_style',
            field=models.CharField(choices=[('vivid', 'Vivid'), ('natural', 'Natural')], default='vivid', help_text='Default image style (accounts can override if plan allows)', max_length=20),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='openai_api_key',
            field=models.CharField(blank=True, help_text='Platform OpenAI API key - used by ALL accounts', max_length=500),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='openai_max_tokens',
            field=models.IntegerField(default=8192, help_text='Default max tokens for responses (accounts can override if plan allows)'),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='openai_model',
            field=models.CharField(default='gpt-4-turbo-preview', help_text='Default text generation model (accounts can override if plan allows)', max_length=100),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='openai_temperature',
            field=models.FloatField(default=0.7, help_text='Default temperature 0.0-2.0 (accounts can override if plan allows)'),
        ),
        migrations.AlterField(
            model_name='globalintegrationsettings',
            name='runware_api_key',
            field=models.CharField(blank=True, help_text='Platform Runware API key - used by ALL accounts', max_length=500),
        ),
        migrations.AlterField(
            model_name='integrationsettings',
            name='config',
            field=models.JSONField(default=dict, help_text='Model and parameter overrides only. Fields: model, temperature, max_tokens, image_size, image_quality, etc. NULL = use global default. NEVER store API keys here.'),
        ),
        migrations.AlterField(
            model_name='integrationsettings',
            name='integration_type',
            field=models.CharField(choices=[('openai', 'OpenAI'), ('dalle', 'DALL-E'), ('anthropic', 'Anthropic'), ('runware', 'Runware')], db_index=True, max_length=50),
        ),
    ]
