# Generated by Django 3.0 on 2019-12-30 10:39

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


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Reply',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('replied_text', models.CharField(max_length=500)),
                ('create_time', models.DateTimeField()),
            ],
        ),
        migrations.CreateModel(
            name='Review',
            fields=[
                ('review_id', models.CharField(max_length=50, primary_key=True, serialize=False)),
                ('comment', models.CharField(max_length=1000)),
                ('create_time', models.DateTimeField()),
                ('update_time', models.DateTimeField()),
                ('star_rating', models.IntegerField()),
                ('reviewer_name', models.CharField(max_length=50)),
                ('reviewer_photo', models.URLField()),
                ('location', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='gauth.Location')),
                ('reply', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to='review.Reply')),
            ],
        ),
    ]
