# Generated by Django 2.2.3 on 2019-07-19 08:41

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Contractor',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('full_name', models.CharField(max_length=200)),
                ('short_name', models.CharField(max_length=200, null=True)),
                ('inn', models.CharField(max_length=20)),
                ('ogrn', models.CharField(max_length=20)),
                ('kpp', models.CharField(max_length=20)),
                ('bik', models.CharField(max_length=20)),
                ('bill_number', models.CharField(max_length=30)),
                ('system_no', models.BooleanField()),
                ('year_of_last_change', models.IntegerField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='MetropolitanArea',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('full_name', models.CharField(max_length=200)),
                ('short_name', models.CharField(max_length=200)),
                ('oktmo', models.CharField(max_length=20)),
            ],
        ),
        migrations.CreateModel(
            name='StructuralElement',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('fkr_id', models.IntegerField()),
                ('name', models.CharField(max_length=200)),
                ('is_actual', models.BooleanField()),
                ('unit', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='TechnicalCustomer',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('full_name', models.CharField(max_length=200)),
                ('mail', models.CharField(max_length=200, null=True)),
                ('metropolitan_area', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='fkrdjan.MetropolitanArea')),
            ],
        ),
        migrations.CreateModel(
            name='House',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('fias', models.CharField(max_length=20, null=True)),
                ('fk_mhcs', models.IntegerField(null=True)),
                ('fk_asup', models.IntegerField(null=True)),
                ('address', models.CharField(max_length=512)),
                ('year_of_exploitation', models.IntegerField(null=True)),
                ('state_of_architecture', models.BooleanField()),
                ('total_square', models.DecimalField(decimal_places=2, max_digits=6, null=True)),
                ('count_res_premises', models.IntegerField(null=True)),
                ('count_unres_premises', models.IntegerField(null=True)),
                ('total_square_res', models.DecimalField(decimal_places=2, max_digits=6, null=True)),
                ('count_floors', models.IntegerField(null=True)),
                ('count_entrances', models.IntegerField(null=True)),
                ('oktmo', models.CharField(max_length=20, null=True)),
                ('year_of_adding', models.IntegerField(null=True)),
                ('year_of_leaving', models.IntegerField(null=True)),
                ('way_of_form', models.BooleanField()),
                ('date_of_agree_way', models.DateField(null=True)),
                ('bank_bik', models.CharField(max_length=20, null=True)),
                ('metropolitan_area', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='fkrdjan.MetropolitanArea')),
            ],
        ),
    ]
