<filename>backend/currency_exchanger/currencies/migrations/0004_auto_20210105_2114.py
# Generated by Django 3.1.2 on 2021-01-05 21:14

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


class Migration(migrations.Migration):

    dependencies = [
        ('wallets', '0001_initial'),
        ('currencies', '0003_add_unique_constraints'),
    ]

    operations = [
        migrations.AddField(
            model_name='currencyexchange',
            name='amount_to',
            field=models.DecimalField(decimal_places=2, default=0, max_digits=12),
        ),
        migrations.CreateModel(
            name='CurrencyTransfer',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.DecimalField(decimal_places=2, max_digits=12)),
                ('currency', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='currencies.currency')),
                ('wallet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='transfers', to='wallets.wallet')),
            ],
        ),
    ]
