# Generated by Django 5.0 on 2025-12-21 08:43

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='AIConfiguration',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('enable_auto_chat', models.BooleanField(default=True, help_text='Enable AI to automatically reply to customer chats')),
                ('ai_persona', models.TextField(default='You are a helpful, professional AI assistant for AiBiMagics. You help customers find products, track orders, and answer questions.', help_text="System prompt defining the AI's personality and rules.")),
                ('ai_model_name', models.CharField(default='gpt-4', help_text='AI Model to use (e.g., gpt-4, gpt-3.5-turbo)', max_length=50)),
                ('openai_api_key', models.CharField(blank=True, help_text='API Key for OpenAI (overrides settings if provided)', max_length=200)),
                ('hero_title', models.CharField(default='Welcome to AiBiMagics', help_text='Main heading for the hero section', max_length=200)),
                ('hero_subtitle', models.TextField(default='Your AI-Powered Shopping Destination', help_text='Subtitle/description for the hero section')),
                ('hero_background_image', models.ImageField(blank=True, help_text='Background image for the hero section', null=True, upload_to='hero/')),
                ('hero_button_text', models.CharField(default='Shop Now', help_text='Text for the primary CTA button', max_length=50)),
                ('hero_button_link', models.CharField(default='/products/', help_text='Link for the primary CTA button', max_length=200)),
                ('site_name', models.CharField(default='AiBiMagics', max_length=200)),
                ('site_tagline', models.CharField(default='Your AI-Powered Shopping Destination', max_length=300)),
                ('site_description', models.TextField(default='Amazing products with AI-powered recommendations')),
                ('logo', models.ImageField(blank=True, help_text='Main site logo', null=True, upload_to='branding/')),
                ('logo_dark', models.ImageField(blank=True, help_text='Dark version of logo', null=True, upload_to='branding/')),
                ('favicon', models.ImageField(blank=True, help_text='16x16 or 32x32 favicon', null=True, upload_to='branding/')),
                ('contact_email', models.EmailField(default='contact@aibimagics.com', max_length=254)),
                ('support_email', models.EmailField(default='support@aibimagics.com', max_length=254)),
                ('sales_email', models.EmailField(default='sales@aibimagics.com', max_length=254)),
                ('phone', models.CharField(blank=True, max_length=20)),
                ('whatsapp', models.CharField(blank=True, help_text='With country code, e.g., +1234567890', max_length=20)),
                ('address_line1', models.CharField(blank=True, max_length=255)),
                ('address_line2', models.CharField(blank=True, max_length=255)),
                ('city', models.CharField(blank=True, max_length=100)),
                ('state', models.CharField(blank=True, max_length=100)),
                ('country', models.CharField(blank=True, max_length=100)),
                ('postal_code', models.CharField(blank=True, max_length=20)),
                ('facebook_url', models.URLField(blank=True)),
                ('twitter_url', models.URLField(blank=True)),
                ('instagram_url', models.URLField(blank=True)),
                ('linkedin_url', models.URLField(blank=True)),
                ('youtube_url', models.URLField(blank=True)),
                ('pinterest_url', models.URLField(blank=True)),
                ('tiktok_url', models.URLField(blank=True)),
                ('telegram_url', models.URLField(blank=True)),
                ('business_hours', models.TextField(blank=True, default='Monday - Friday: 9:00 AM - 6:00 PM\nSaturday: 10:00 AM - 4:00 PM\nSunday: Closed')),
                ('meta_keywords', models.TextField(blank=True, help_text='Comma-separated keywords')),
                ('meta_description', models.TextField(blank=True)),
                ('google_analytics_id', models.CharField(blank=True, help_text='GA4 Measurement ID', max_length=50)),
                ('google_tag_manager_id', models.CharField(blank=True, max_length=50)),
                ('facebook_pixel_id', models.CharField(blank=True, max_length=50)),
                ('smtp_host', models.CharField(blank=True, default='smtp.gmail.com', max_length=200)),
                ('smtp_port', models.IntegerField(default=587)),
                ('smtp_username', models.CharField(blank=True, max_length=200)),
                ('smtp_password', models.CharField(blank=True, max_length=200)),
                ('smtp_use_tls', models.BooleanField(default=True)),
                ('admin_notification_email', models.EmailField(default='admin@aibimagics.com', max_length=254)),
                ('order_notification_email', models.EmailField(default='orders@aibimagics.com', max_length=254)),
                ('footer_about', models.TextField(blank=True, default='AiBiMagics is your trusted e-commerce platform powered by AI.')),
                ('copyright_text', models.CharField(default='© 2025 AiBiMagics. All rights reserved.', max_length=300)),
                ('enable_chat', models.BooleanField(default=True, help_text='Enable live chat widget')),
                ('enable_newsletter', models.BooleanField(default=True)),
                ('enable_wishlist', models.BooleanField(default=True)),
                ('enable_reviews', models.BooleanField(default=True)),
                ('enable_ai_recommendations', models.BooleanField(default=True)),
                ('enable_ai_seo', models.BooleanField(default=True)),
                ('bank_api_base_url', models.CharField(blank=True, help_text='Base URL of Bank API', max_length=300)),
                ('bank_api_token', models.CharField(blank=True, help_text='Bearer token for Bank API', max_length=300)),
                ('maintenance_mode', models.BooleanField(default=False)),
                ('maintenance_message', models.TextField(blank=True, default='We are currently undergoing maintenance. We will be back shortly!')),
                ('maintenance_end_time', models.DateTimeField(blank=True, null=True)),
                ('maintenance_access_mode', models.CharField(choices=[('SUPERUSER_ONLY', 'Superuser Only'), ('STAFF_ONLY', 'Staff Only'), ('REGISTERED_ONLY', 'Registered Users Only')], default='SUPERUSER_ONLY', max_length=20)),
                ('theme_color', models.CharField(choices=[('orange', 'Orange (Original)'), ('pink', 'Pink (Modern)'), ('blue', 'Blue (Professional)'), ('green', 'Green (Eco)'), ('purple', 'Purple (Creative)'), ('red', 'Red (Bold)'), ('teal', 'Teal (Fresh)'), ('indigo', 'Indigo (Deep)'), ('yellow', 'Yellow (Sunny)'), ('cyan', 'Cyan (Cool)'), ('lime', 'Lime (Vibrant)'), ('amber', 'Amber (Warm)'), ('brown', 'Brown (Earth)'), ('slate', 'Slate (Neutral)'), ('dark', 'Dark (Elegant)'), ('custom', 'Custom (Manual Entry)')], default='pink', help_text='Primary color theme for the site', max_length=20)),
                ('primary_color', models.CharField(default='#E91E63', help_text='Main brand color', max_length=20)),
                ('primary_hover', models.CharField(default='#C2185B', help_text='Hover state for primary color', max_length=20)),
                ('secondary_color', models.CharField(default='#232F3E', help_text='Secondary/Background color', max_length=20)),
                ('accent_color', models.CharField(default='#146EB4', help_text='Accent/Link color', max_length=20)),
                ('success_color', models.CharField(default='#28a745', help_text='Success messages/badges', max_length=20)),
                ('warning_color', models.CharField(default='#ffc107', help_text='Warning messages/badges', max_length=20)),
                ('error_color', models.CharField(default='#dc3545', help_text='Error messages/badges', max_length=20)),
                ('info_color', models.CharField(default='#17a2b8', help_text='Info messages/badges', max_length=20)),
                ('primary_shadow', models.CharField(default='rgba(233, 30, 99, 0.3)', help_text='Shadow color (rgba)', max_length=50)),
                ('primary_light', models.CharField(default='rgba(233, 30, 99, 0.1)', help_text='Light background variation (rgba)', max_length=50)),
                ('custom_css', models.TextField(blank=True, help_text='Custom CSS to inject into all pages')),
                ('custom_js', models.TextField(blank=True, help_text='Custom JavaScript to inject into all pages')),
                ('header_scripts', models.TextField(blank=True, help_text='Scripts to add in <head>')),
                ('footer_scripts', models.TextField(blank=True, help_text='Scripts to add before </body>')),
                ('tax_rate_percent', models.DecimalField(decimal_places=2, default=18, max_digits=5)),
                ('free_shipping_threshold', models.DecimalField(decimal_places=2, default=500, max_digits=10)),
                ('shipping_flat_amount', models.DecimalField(decimal_places=2, default=50, max_digits=10)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'AI Site Control',
                'verbose_name_plural': 'AI Site Control',
            },
        ),
    ]
