# Generated manually
import uuid
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='KYCRequest',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('uuid', models.CharField(default=uuid.uuid4, max_length=100, unique=True)),
                ('user_id', models.CharField(max_length=255)),
                ('team_uuid', models.CharField(max_length=100)),
                ('team_name', models.CharField(blank=True, max_length=200)),
                ('country_code', models.CharField(blank=True, max_length=2)),
                ('status', models.CharField(choices=[('pending', 'Ожидает проверки'), ('in_review', 'На рассмотрении'), ('approved', 'Одобрено'), ('rejected', 'Отклонено'), ('expired', 'Истекло')], default='pending', max_length=50)),
                ('score', models.IntegerField(default=0)),
                ('contact_person', models.CharField(blank=True, default='', max_length=255)),
                ('contact_email', models.EmailField(blank=True, default='', max_length=254)),
                ('contact_phone', models.CharField(blank=True, default='', max_length=50)),
                ('registration_number', models.CharField(blank=True, max_length=50)),
                ('approved_by', models.CharField(blank=True, max_length=255, null=True)),
                ('approved_at', models.DateTimeField(blank=True, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'kyc_requests',
            },
        ),
        migrations.CreateModel(
            name='KYCRequestRussia',
            fields=[
                ('kycrequest_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='kyc_app.kycrequest')),
                ('company_name', models.CharField(max_length=255)),
                ('company_full_name', models.TextField()),
                ('inn', models.CharField(max_length=12)),
                ('kpp', models.CharField(blank=True, max_length=9)),
                ('ogrn', models.CharField(blank=True, max_length=15)),
                ('address', models.TextField()),
                ('bank_name', models.CharField(max_length=255)),
                ('bik', models.CharField(max_length=9)),
                ('correspondent_account', models.CharField(blank=True, max_length=20)),
            ],
            options={
                'db_table': 'kyc_requests_russia',
            },
            bases=('kyc_app.kycrequest',),
        ),
    ]
