# Generated by Django 3.2.3 on 2021-05-30 04:28

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('realtors', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Listing',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('slug', models.CharField(max_length=200, unique=True)),
                ('title', models.CharField(max_length=150)),
                ('address', models.CharField(default='', max_length=150)),
                ('city', models.CharField(max_length=100)),
                ('state', models.CharField(max_length=100)),
                ('zipcode', models.CharField(max_length=15)),
                ('description', models.TextField(blank=True)),
                ('sale_type', models.CharField(choices=[('For Sale', 'For Sale'), ('For Rent', 'For Rent')], default='For Sale', max_length=50)),
                ('price', models.IntegerField()),
                ('bedrooms', models.IntegerField()),
                ('bathrooms', models.DecimalField(decimal_places=1, max_digits=2)),
                ('home_type', models.CharField(choices=[('House', 'House'), ('Condo', 'Condo'), ('Townhouse', 'Townhouse')], default='House', max_length=50)),
                ('sqft', models.IntegerField()),
                ('open_house', models.BooleanField(default=False)),
                ('photo_main', models.ImageField(upload_to='photos/%Y/%m/%d')),
                ('photo_1', models.ImageField(blank=True, upload_to='photos/%Y/%m/%d')),
                ('photo_2', models.ImageField(blank=True, upload_to='photos/%Y/%m/%d')),
                ('is_published', models.BooleanField(default=True)),
                ('list_date', models.DateTimeField(blank=True, default=django.utils.timezone.now)),
                ('realtor', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='realtors.realtor')),
            ],
        ),
    ]

[((403, 499), 'django.db.models.BigAutoField', 'models.BigAutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (422, 499), False, 'from django.db import migrations, models\n'), ((523, 568), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(200)', 'unique': '(True)'}), '(max_length=200, unique=True)\n', (539, 568), False, 'from django.db import migrations, models\n'), ((597, 629), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(150)'}), '(max_length=150)\n', (613, 629), False, 'from django.db import migrations, models\n'), ((660, 704), 'django.db.models.CharField', 'models.CharField', ([], {'default': '""""""', 'max_length': '(150)'}), "(default='', max_length=150)\n", (676, 704), False, 'from django.db import migrations, models\n'), ((732, 764), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), '(max_length=100)\n', (748, 764), False, 'from django.db import migrations, models\n'), ((793, 825), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), '(max_length=100)\n', (809, 825), False, 'from django.db import migrations, models\n'), ((856, 887), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(15)'}), '(max_length=15)\n', (872, 887), False, 'from django.db import migrations, models\n'), ((922, 950), 'django.db.models.TextField', 'models.TextField', ([], {'blank': '(True)'}), '(blank=True)\n', (938, 950), False, 'from django.db import migrations, models\n'), ((983, 1101), 'django.db.models.CharField', 'models.CharField', ([], {'choices': "[('For Sale', 'For Sale'), ('For Rent', 'For Rent')]", 'default': '"""For Sale"""', 'max_length': '(50)'}), "(choices=[('For Sale', 'For Sale'), ('For Rent', 'For Rent'\n    )], default='For Sale', max_length=50)\n", (999, 1101), False, 'from django.db import migrations, models\n'), ((1125, 1146), 'django.db.models.IntegerField', 'models.IntegerField', ([], {}), '()\n', (1144, 1146), False, 'from django.db import migrations, models\n'), ((1178, 1199), 'django.db.models.IntegerField', 'models.IntegerField', ([], {}), '()\n', (1197, 1199), False, 'from django.db import migrations, models\n'), ((1232, 1283), 'django.db.models.DecimalField', 'models.DecimalField', ([], {'decimal_places': '(1)', 'max_digits': '(2)'}), '(decimal_places=1, max_digits=2)\n', (1251, 1283), False, 'from django.db import migrations, models\n'), ((1316, 1447), 'django.db.models.CharField', 'models.CharField', ([], {'choices': "[('House', 'House'), ('Condo', 'Condo'), ('Townhouse', 'Townhouse')]", 'default': '"""House"""', 'max_length': '(50)'}), "(choices=[('House', 'House'), ('Condo', 'Condo'), (\n    'Townhouse', 'Townhouse')], default='House', max_length=50)\n", (1332, 1447), False, 'from django.db import migrations, models\n'), ((1470, 1491), 'django.db.models.IntegerField', 'models.IntegerField', ([], {}), '()\n', (1489, 1491), False, 'from django.db import migrations, models\n'), ((1525, 1559), 'django.db.models.BooleanField', 'models.BooleanField', ([], {'default': '(False)'}), '(default=False)\n', (1544, 1559), False, 'from django.db import migrations, models\n'), ((1593, 1639), 'django.db.models.ImageField', 'models.ImageField', ([], {'upload_to': '"""photos/%Y/%m/%d"""'}), "(upload_to='photos/%Y/%m/%d')\n", (1610, 1639), False, 'from django.db import migrations, models\n'), ((1670, 1728), 'django.db.models.ImageField', 'models.ImageField', ([], {'blank': '(True)', 'upload_to': '"""photos/%Y/%m/%d"""'}), "(blank=True, upload_to='photos/%Y/%m/%d')\n", (1687, 1728), False, 'from django.db import migrations, models\n'), ((1759, 1817), 'django.db.models.ImageField', 'models.ImageField', ([], {'blank': '(True)', 'upload_to': '"""photos/%Y/%m/%d"""'}), "(blank=True, upload_to='photos/%Y/%m/%d')\n", (1776, 1817), False, 'from django.db import migrations, models\n'), ((1853, 1886), 'django.db.models.BooleanField', 'models.BooleanField', ([], {'default': '(True)'}), '(default=True)\n', (1872, 1886), False, 'from django.db import migrations, models\n'), ((1919, 1986), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'blank': '(True)', 'default': 'django.utils.timezone.now'}), '(blank=True, default=django.utils.timezone.now)\n', (1939, 1986), False, 'from django.db import migrations, models\n'), ((2017, 2110), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.DO_NOTHING', 'to': '"""realtors.realtor"""'}), "(on_delete=django.db.models.deletion.DO_NOTHING, to=\n    'realtors.realtor')\n", (2034, 2110), False, 'from django.db import migrations, models\n')]