# Generated by Django 5.0.2 on 2025-07-23 16:58

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='CompanyProfile',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('company_name', models.CharField(default='OptiNet Solutions', max_length=200)),
                ('company_logo', models.ImageField(blank=True, null=True, upload_to='company/')),
                ('address', models.TextField(blank=True)),
                ('phone', models.CharField(blank=True, max_length=20)),
                ('email', models.EmailField(blank=True, max_length=254)),
                ('website', models.URLField(blank=True)),
                ('tax_id', models.CharField(blank=True, help_text='KRA PIN or Tax ID', max_length=50)),
                ('business_registration', models.CharField(blank=True, max_length=100)),
                ('default_currency', models.CharField(default='KES', max_length=3)),
                ('timezone', models.CharField(default='Africa/Nairobi', max_length=50)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'Company Profile',
                'verbose_name_plural': 'Company Profile',
            },
        ),
        migrations.CreateModel(
            name='SystemSettings',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('category', models.CharField(choices=[('mpesa', 'M-Pesa API'), ('email', 'Email Configuration'), ('sms', 'SMS API'), ('maps', 'Google Maps API'), ('mikrotik', 'MikroTik Configuration'), ('general', 'General Settings')], max_length=20)),
                ('key', models.CharField(help_text='Setting key/name', max_length=100)),
                ('value', models.TextField(help_text='Setting value (will be encrypted for sensitive data)')),
                ('description', models.TextField(blank=True, help_text='Description of what this setting does')),
                ('is_sensitive', models.BooleanField(default=False, help_text='Mark as sensitive to hide value in UI')),
                ('is_required', models.BooleanField(default=False, help_text='Required for system operation')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ['category', 'key'],
                'unique_together': {('category', 'key')},
            },
        ),
    ]
