# Generated by Django 5.0.1 on 2024-01-30 13:30

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='Profit',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.FloatField(default=0)),
                ('long', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('ref_bonus', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('short', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('long_started', models.BooleanField(default=False)),
                ('short_started', models.BooleanField(default=False)),
                ('can_withdraw', models.BooleanField(default=False)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='userprofit', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Transaction',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('investment_type', models.CharField(choices=[('LONG', 'Long'), ('SHORT', 'Short')], default='SHORT', max_length=20)),
                ('transaction_type', models.CharField(choices=[('DEPOSIT', 'Deposit'), ('WITHDRAW', 'Withdraw')], default='DEPOSIT', max_length=20)),
                ('amount', models.FloatField(default=0)),
                ('wallet_add', models.CharField(blank=True, max_length=200, null=True)),
                ('sent', models.BooleanField(default=False)),
                ('recieved', models.BooleanField(default=False)),
                ('time', models.DateTimeField(auto_now=True)),
                ('tid', models.CharField(max_length=50)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
