# Generated by Django 6.0.3 on 2026-03-16 18:03

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='PaymentInfo',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('payment_method', models.CharField(choices=[('BITCOIN', 'Bitcoin'), ('ETHEREUM', 'Ethereum'), ('BINANCE_COIN', 'Binance Coin'), ('USDT_TRC20', 'USDT (TRC20)'), ('USDT_ERC20', 'USDT (ERC20)'), ('BANK_TRANSFER', 'Bank Transfer'), ('OTHER', 'Other')], max_length=50)),
                ('wallet_address', models.CharField(max_length=200)),
                ('qr_code', models.ImageField(blank=True, null=True, upload_to='payment_qr_codes/')),
                ('instructions', models.TextField(blank=True)),
                ('is_active', models.BooleanField(default=True)),
                ('minimum_amount', models.DecimalField(decimal_places=2, default=10.0, max_digits=15)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'Payment Information',
                'verbose_name_plural': 'Payment Information',
            },
        ),
        migrations.CreateModel(
            name='Deposit',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.DecimalField(decimal_places=2, max_digits=15)),
                ('payment_method', models.CharField(choices=[('BITCOIN', 'Bitcoin'), ('ETHEREUM', 'Ethereum'), ('BINANCE_COIN', 'Binance Coin'), ('USDT_TRC20', 'USDT (TRC20)'), ('USDT_ERC20', 'USDT (ERC20)'), ('BANK_TRANSFER', 'Bank Transfer'), ('OTHER', 'Other')], max_length=50)),
                ('transaction_id', models.CharField(blank=True, max_length=200)),
                ('wallet_address', models.CharField(blank=True, max_length=200)),
                ('screenshot', models.ImageField(blank=True, null=True, upload_to='deposit_screenshots/')),
                ('notes', models.TextField(blank=True)),
                ('status', models.CharField(choices=[('PENDING', 'Pending'), ('APPROVED', 'Approved'), ('REJECTED', 'Rejected')], default='PENDING', max_length=20)),
                ('verification_notes', models.TextField(blank=True)),
                ('verified_at', models.DateTimeField(blank=True, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='deposits', to=settings.AUTH_USER_MODEL)),
                ('verified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='verified_deposits', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Deposit',
                'verbose_name_plural': 'Deposits',
                'ordering': ['-created_at'],
            },
        ),
    ]
