# Generated by Django 2.2.4 on 2020-08-20 15:56

from django.conf import settings
from django.db import migrations, models
import phonenumber_field.modelfields


class Migration(migrations.Migration):

    dependencies = [
        ('property', '0010_auto_20200820_1807'),
    ]

    operations = [
        migrations.AlterField(
            model_name='flat',
            name='liked_by',
            field=models.ManyToManyField(
                blank=True, related_name='liked_flats',
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.CreateModel(
            name='Owner',
            fields=[
                ('id', models.AutoField(
                    auto_created=True, primary_key=True,
                    serialize=False, verbose_name='ID')),
                ('name', models.CharField(
                    max_length=200, verbose_name='ФИО владельца')),
                ('owners_phonenumber', models.CharField(
                    blank=True, max_length=20, null=True,
                    verbose_name='Номер владельца')),
                ('owner_phone_pure',
                 phonenumber_field.modelfields.PhoneNumberField(
                     blank=True, max_length=128, null=True, region=None,
                     verbose_name='Нормализованный номер владельца')),
                ('flat', models.ManyToManyField(
                    related_name='flats_by_owner', to='property.Flat',
                    verbose_name='Квартиры в собственности')),
            ],
        ),
    ]
