# Generated by Django 3.1.13 on 2021-12-09 03:30

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


class Migration(migrations.Migration):

    dependencies = [
        ('companies', '0015_remove_company_platforms'),
        ('reviews', '0003_auto_20211123_0956'),
    ]

    operations = [
        migrations.CreateModel(
            name='ReviewSource',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('url', models.URLField(max_length=500)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='companies.company')),
            ],
        ),
        migrations.AlterModelOptions(
            name='platform',
            options={},
        ),
        migrations.RemoveField(
            model_name='platform',
            name='rating',
        ),
        migrations.RemoveField(
            model_name='platform',
            name='reviews_count',
        ),
        migrations.RemoveField(
            model_name='platform',
            name='source_review',
        ),
        migrations.RemoveField(
            model_name='platform',
            name='url_platform',
        ),
        migrations.AddField(
            model_name='platform',
            name='is_popular',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='platform',
            name='logo',
            field=models.CharField(blank=True, max_length=255),
        ),
        migrations.AddField(
            model_name='platform',
            name='name',
            field=models.CharField(blank=True, max_length=100),
        ),
        migrations.AddField(
            model_name='platform',
            name='url',
            field=models.URLField(blank=True),
        ),
        migrations.AlterField(
            model_name='platform',
            name='status',
            field=models.CharField(choices=[('ACTIVE', 'Active'), ('INACTIVE', 'Inactive'), ('UNAVAILABLE', 'Unavailable')], default='ACTIVE', max_length=50),
        ),
        migrations.DeleteModel(
            name='SourceReview',
        ),
        migrations.AddField(
            model_name='reviewsource',
            name='platform',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='reviews.platform'),
        ),
    ]
