text: # Generated by Django 2.2.5 on 2019-09-14 11:25
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Wallet',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=20, unique=True, verbose_name='Wallet name')),
                  ('balance', models.DecimalField(decimal_places=2, default=0.0, max_digits=7)),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='wallets', to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name': 'Wallet',
                  'verbose_name_plural': 'Wallets',
                  'ordering': ('balance',),
              },
          ),
          migrations.CreateModel(
              name='Transaction',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('amount', models.DecimalField(decimal_places=2, max_digits=7, verbose_name='Transaction amount')),
                  ('date_time', models.DateTimeField(auto_now_add=True, verbose_name='Transaction date')),
                  ('type', models.CharField(choices=[('Write-Off', 'Contribution')], max_length=20)),
                  ('wallet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='transactions', to='wallet.Wallet')),
              ],
              options={
                  'verbose_name': 'Transaction',
                  'verbose_name_plural': 'Transactions',
                  'ordering': ('date_time',),
              },
          ),
      ]
  