<reponame>SteveMitto/neighborhood
# Generated by Django 2.2.5 on 2019-10-25 10:10

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('neigh1', '0002_auto_20191025_1310'),
    ]

    operations = [
        migrations.CreateModel(
            name='Nation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
                ('flag', models.URLField()),
                ('calling_codes', models.IntegerField()),
                ('currency', models.CharField(max_length=100)),
                ('symbol', models.CharField(max_length=10)),
            ],
            options={
                'verbose_name': 'nation',
                'ordering': ['name'],
            },
        ),
        migrations.CreateModel(
            name='Town',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('town', models.CharField(max_length=200)),
                ('nation', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='towns', to='neigh1.Nation')),
            ],
            options={
                'verbose_name': 'town',
                'ordering': ['nation'],
            },
        ),
        migrations.CreateModel(
            name='Neighborhood',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
                ('occupants', models.IntegerField()),
                ('registered_occupants', models.IntegerField()),
                ('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='neighborhoods', to='neigh1.Town')),
            ],
            options={
                'verbose_name': 'neighborhood',
                'ordering': ['name'],
            },
        ),
        migrations.CreateModel(
            name='Bussines',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('type', models.CharField(max_length=150)),
                ('email', models.EmailField(max_length=254)),
                ('phone_number', models.IntegerField()),
                ('neighborhood', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='neigh1.Neighborhood')),
            ],
            options={
                'verbose_name': 'bussines',
                'ordering': ['name'],
            },
        ),
    ]
