# Generated by Django 5.2.8 on 2025-11-28 07:16

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0004_tenant_email_logo_alter_tenant_logo'),
    ]

    operations = [
        migrations.AddField(
            model_name='tenant',
            name='oauth_allow_registration',
            field=models.BooleanField(default=True, help_text='Allow new customers to register via OAuth'),
        ),
        migrations.AddField(
            model_name='tenant',
            name='oauth_auto_link_by_email',
            field=models.BooleanField(default=True, help_text='Automatically link OAuth accounts to existing accounts with matching email'),
        ),
        migrations.AddField(
            model_name='tenant',
            name='oauth_credentials',
            field=models.JSONField(blank=True, default=dict, help_text='Custom OAuth credentials for each provider (encrypted at rest)'),
        ),
        migrations.AddField(
            model_name='tenant',
            name='oauth_enabled_providers',
            field=models.JSONField(blank=True, default=list, help_text="List of enabled OAuth providers (e.g., ['google', 'facebook', 'apple'])"),
        ),
        migrations.AddField(
            model_name='tenant',
            name='oauth_use_custom_credentials',
            field=models.BooleanField(default=False, help_text="Use business's own OAuth app credentials instead of platform credentials"),
        ),
    ]
