# Generated by Django 3.1.7 on 2021-05-20 19:01

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Accounts',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('account_num', models.IntegerField(unique=True)),
                ('user_name', models.CharField(max_length=120, unique=True)),
                ('balance', models.IntegerField(default=0)),
                ('acnt_type', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='Transactions',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('to_acno', models.IntegerField()),
                ('amount', models.IntegerField()),
                ('date', models.DateField(auto_now=True)),
                ('account_num', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='bank.accounts')),
            ],
        ),
    ]
