# 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')),
            ],
        ),
    ]

[(20, 'django.db.models.BigAutoField', 'models.BigAutoField', False, 'from django.db import migrations, models\n'), (21, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (22, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (23, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (24, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (25, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (26, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (27, 'django.db.models.TextField', 'models.TextField', False, 'from django.db import migrations, models\n'), (28, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (29, 'django.db.models.IntegerField', 'models.IntegerField', False, 'from django.db import migrations, models\n'), (30, 'django.db.models.IntegerField', 'models.IntegerField', False, 'from django.db import migrations, models\n'), (31, 'django.db.models.DecimalField', 'models.DecimalField', False, 'from django.db import migrations, models\n'), (32, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (33, 'django.db.models.IntegerField', 'models.IntegerField', False, 'from django.db import migrations, models\n'), (34, 'django.db.models.BooleanField', 'models.BooleanField', False, 'from django.db import migrations, models\n'), (35, 'django.db.models.ImageField', 'models.ImageField', False, 'from django.db import migrations, models\n'), (36, 'django.db.models.ImageField', 'models.ImageField', False, 'from django.db import migrations, models\n'), (37, 'django.db.models.ImageField', 'models.ImageField', False, 'from django.db import migrations, models\n'), (38, 'django.db.models.BooleanField', 'models.BooleanField', False, 'from django.db import migrations, models\n'), (39, 'django.db.models.DateTimeField', 'models.DateTimeField', False, 'from django.db import migrations, models\n'), (40, 'django.db.models.ForeignKey', 'models.ForeignKey', False, 'from django.db import migrations, models\n')]