# Generated by Django 3.0.8 on 2020-07-01 17:22

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


class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="Bank",
            fields=[
                (
                    "id",
                    models.IntegerField(
                        default=0, editable=False, primary_key=True, serialize=False
                    ),
                ),
                ("name", models.CharField(max_length=50, null=True)),
            ],
            options={"ordering": ("name",),},
        ),
        migrations.CreateModel(
            name="Branch",
            fields=[
                (
                    "ifsc",
                    models.CharField(max_length=11, primary_key=True, serialize=False),
                ),
                ("branch", models.CharField(max_length=74, null=True)),
                ("address", models.CharField(max_length=300, null=True)),
                ("city", models.CharField(max_length=50, null=True)),
                ("district", models.CharField(max_length=50, null=True)),
                ("state", models.CharField(max_length=26, null=True)),
                (
                    "bank_id",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE, to="banks.Bank"
                    ),
                ),
            ],
            options={
                "verbose_name": "Branch",
                "verbose_name_plural": "Branches",
                "ordering": ("branch",),
            },
        ),
    ]
