# Generated by Django 3.2 on 2023-09-05 17:56

import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('service', '0030_auto_20230903_2006'),
    ]

    operations = [
        migrations.CreateModel(
            name='PrePlacementPoint',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('address', models.TextField(blank=True, null=True, verbose_name='Адрес')),
                ('name', models.TextField(blank=True, null=True, verbose_name='Название')),
                ('postamat_id', models.IntegerField(blank=True, null=True, unique=True, verbose_name='ID  постамата')),
                ('category', models.TextField(blank=True, null=True, verbose_name='Категория')),
                ('status', models.TextField(blank=True, choices=[('Pending', 'К рассмотрению'), ('Installation', 'Согласование-Установка'), ('Working', 'Работает'), ('Cancelled', 'Отменено')], null=True, verbose_name='Статус')),
                ('start_date', models.DateTimeField(blank=True, null=True)),
                ('age_day', models.IntegerField(blank=True, null=True, verbose_name='Возраст')),
                ('prediction_first', models.IntegerField(blank=True, null=True, verbose_name='Прогноз начальный')),
                ('prediction_current', models.IntegerField(blank=True, null=True, verbose_name='Прогноз текущий')),
                ('plan_first', models.IntegerField(blank=True, null=True, verbose_name='Плановый показатель начальный')),
                ('plan_current', models.IntegerField(blank=True, null=True, verbose_name='Плановый показатель текущий')),
                ('fact', models.IntegerField(blank=True, null=True, verbose_name='Фактический показатель')),
                ('fact_raw', models.IntegerField(blank=True, null=True)),
                ('delta_first', models.IntegerField(blank=True, null=True, verbose_name='Разница начальная')),
                ('delta_current', models.IntegerField(blank=True, null=True, verbose_name='Разница текущая')),
                ('sample_trn', models.BooleanField(blank=True, null=True)),
                ('flat_cnt', models.IntegerField(blank=True, null=True, verbose_name='Количество квартир')),
                ('year_bld', models.IntegerField(blank=True, null=True, verbose_name='Год постройки')),
                ('levels', models.IntegerField(blank=True, null=True)),
                ('enrg_cls', models.TextField(blank=True, null=True)),
                ('mat_nes', models.TextField(blank=True, null=True)),
                ('doors', models.IntegerField(blank=True, null=True)),
                ('flats_cnt', models.IntegerField(blank=True, null=True)),
                ('popul_home', models.IntegerField(blank=True, null=True)),
                ('popul_job', models.IntegerField(blank=True, null=True)),
                ('other_post_cnt', models.IntegerField(blank=True, null=True)),
                ('target_post_cnt', models.IntegerField(blank=True, null=True)),
                ('yndxfood_cnt', models.IntegerField(blank=True, null=True)),
                ('yndxfood_sum', models.IntegerField(blank=True, null=True)),
                ('yndxfood_cnt_cst', models.IntegerField(blank=True, null=True)),
                ('geometry', django.contrib.gis.db.models.fields.PointField(null=True, srid=4326, verbose_name='Координаты')),
                ('is_vis', models.BooleanField(blank=True, null=True)),
                ('subject_rf', models.TextField(blank=True, null=True)),
                ('city', models.TextField(blank=True, null=True)),
                ('street', models.TextField(blank=True, null=True)),
                ('house_number', models.TextField(blank=True, null=True)),
                ('entrance', models.TextField(blank=True, null=True)),
                ('post_code', models.TextField(blank=True, null=True)),
                ('metro_dist', models.FloatField(blank=True, null=True)),
                ('target_dist', models.FloatField(blank=True, null=True)),
                ('property_price_bargains', models.FloatField(blank=True, null=True)),
                ('property_price_offers', models.FloatField(blank=True, null=True)),
                ('property_mean_floor', models.FloatField(blank=True, null=True)),
                ('property_era', models.TextField(blank=True, null=True)),
                ('business_activity', models.IntegerField(blank=True, null=True)),
                ('bc_cnt', models.IntegerField(blank=True, null=True)),
                ('tc_cnt', models.IntegerField(blank=True, null=True)),
                ('rival_pvz_cnt', models.IntegerField(blank=True, null=True)),
                ('rival_post_cnt', models.IntegerField(blank=True, null=True)),
                ('flats_cnt_2', models.IntegerField(blank=True, null=True)),
                ('school_cnt', models.IntegerField(blank=True, null=True)),
                ('kindergar_cnt', models.IntegerField(blank=True, null=True)),
                ('public_stop_cnt', models.IntegerField(blank=True, null=True)),
                ('sport_center_cnt', models.IntegerField(blank=True, null=True)),
                ('pharmacy_cnt', models.IntegerField(blank=True, null=True)),
                ('supermarket_cnt', models.IntegerField(blank=True, null=True)),
                ('supermarket_premium_cnt', models.IntegerField(blank=True, null=True)),
                ('clinic_cnt', models.IntegerField(blank=True, null=True)),
                ('bank_cnt', models.IntegerField(blank=True, null=True)),
                ('reca_cnt', models.IntegerField(blank=True, null=True)),
                ('lab_cnt', models.IntegerField(blank=True, null=True)),
                ('culture_cnt', models.IntegerField(blank=True, null=True)),
                ('attraction_cnt', models.IntegerField(blank=True, null=True)),
                ('mfc_cnt', models.IntegerField(blank=True, null=True)),
                ('target_cnt_ao_mean', models.FloatField(blank=True, null=True)),
                ('target_cnt_nearby_mean', models.FloatField(blank=True, null=True)),
                ('target_age_nearby_mean', models.FloatField(blank=True, null=True)),
                ('matching_status', models.TextField(blank=True, choices=[('Error', 'Ошибка'), ('New', 'Новая'), ('Matched', 'Совпадение')], null=True)),
                ('area', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='service.rayon')),
                ('district', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='service.ao')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
