# Generated by Django 5.2.11 on 2026-04-20 17:58

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0017_aichatlog_aiprompt'),
    ]

    operations = [
        migrations.CreateModel(
            name='SiteConfiguration',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('active_payment_gateway', models.CharField(choices=[('monnify', 'Monnify'), ('paystack', 'Paystack'), ('both', 'Both (company chooses)')], default='monnify', help_text='Which payment gateway is used for subscription billing', max_length=20)),
                ('enable_whatsapp', models.BooleanField(default=False, help_text='Master switch: enables WhatsApp/SMS features for ALL companies. Individual companies still need their own API credentials and toggles.')),
                ('platform_name', models.CharField(default='SwiftPOS', max_length=100)),
                ('platform_logo_url', models.CharField(blank=True, max_length=300)),
                ('maintenance_mode', models.BooleanField(default=False, help_text='Put entire platform in maintenance mode')),
                ('maintenance_message', models.TextField(blank=True, default='SwiftPOS is undergoing scheduled maintenance. We will be back shortly.')),
                ('ai_global_daily_limit', models.PositiveIntegerField(default=50, help_text='Platform-wide daily AI chat limit per company')),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'Site Configuration',
                'verbose_name_plural': 'Site Configuration',
            },
        ),
        migrations.AlterField(
            model_name='promocode',
            name='discount_value',
            field=models.DecimalField(decimal_places=2, help_text='10 = 10% off (for percentage) or â\x82¦10 off (for fixed)', max_digits=10),
        ),
    ]
