# Generated by Django 5.2.4 on 2025-07-15 20:57

import django.core.validators
import settings.models
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Shop',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('address', models.TextField()),
                ('phone', models.CharField(max_length=15, validators=[django.core.validators.RegexValidator('^\\+?\\d{9,15}$', 'Enter a valid phone number.')])),
                ('email', models.EmailField(max_length=254)),
                ('website', models.URLField(blank=True, null=True)),
                ('logo', models.ImageField(blank=True, null=True, upload_to=settings.models.shop_logo_path)),
                ('mpesa_consumer_key', models.CharField(blank=True, max_length=255, null=True)),
                ('mpesa_consumer_secret', models.CharField(blank=True, max_length=255, null=True)),
                ('mpesa_short_code', models.CharField(blank=True, max_length=10, null=True)),
                ('mpesa_passkey', models.CharField(blank=True, max_length=255, null=True)),
                ('mpesa_env', models.CharField(choices=[('sandbox', 'Sandbox'), ('production', 'Production')], default='sandbox', max_length=10)),
                ('smtp_host', models.CharField(blank=True, max_length=255, null=True)),
                ('smtp_port', models.PositiveIntegerField(blank=True, null=True)),
                ('smtp_user', models.EmailField(blank=True, max_length=254, null=True)),
                ('smtp_password', models.CharField(blank=True, max_length=255, null=True)),
                ('smtp_use_tls', models.BooleanField(default=True)),
                ('smtp_use_ssl', models.BooleanField(default=False)),
                ('sms_api_url', models.URLField(blank=True, null=True)),
                ('sms_api_key', models.CharField(blank=True, max_length=255, null=True)),
                ('sms_sender_id', models.CharField(blank=True, max_length=50, null=True)),
            ],
            options={
                'verbose_name': 'Shop',
                'verbose_name_plural': 'Shops',
            },
        ),
        migrations.CreateModel(
            name='Theme',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('mode', models.CharField(choices=[('light', 'Light Mode'), ('dark', 'Dark Mode')], default='light', help_text='Choose between light and dark mode', max_length=10)),
                ('primary_color', models.CharField(default='#28a745', help_text='Primary brand color (used for buttons, links, etc.)', max_length=7, validators=[django.core.validators.RegexValidator(message='Enter a valid HEX color code.', regex='^#(?:[0-9a-fA-F]{3}){1,2}$')])),
            ],
            options={
                'verbose_name': 'Theme',
                'verbose_name_plural': 'Themes',
            },
        ),
    ]
