# Generated by Django 3.1.2 on 2020-10-17 15:15

from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
import wagtail.core.fields


class Migration(migrations.Migration):

    dependencies = [
        ('ayewa', '0008_auto_20201017_0824'),
    ]

    operations = [
        migrations.CreateModel(
            name='InternalRating',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, default='', max_length=40, verbose_name='name')),
                ('description', wagtail.core.fields.RichTextField(blank=True, verbose_name='Description')),
            ],
            options={
                'verbose_name': 'Internal Rating',
                'verbose_name_plural': 'Internal Ratings',
            },
        ),
        migrations.CreateModel(
            name='Rank',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, default='', max_length=40, verbose_name='name')),
                ('description', wagtail.core.fields.RichTextField(blank=True, verbose_name='Description')),
            ],
            options={
                'verbose_name': 'Rank',
                'verbose_name_plural': 'Ranks',
            },
        ),
        migrations.CreateModel(
            name='Scope',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, default='', max_length=40, verbose_name='name')),
                ('description', wagtail.core.fields.RichTextField(blank=True, verbose_name='Description')),
            ],
            options={
                'verbose_name': 'Scope',
                'verbose_name_plural': 'Scopes',
            },
        ),
        migrations.CreateModel(
            name='UserRating',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, default='', max_length=40, verbose_name='name')),
                ('description', wagtail.core.fields.RichTextField(blank=True, verbose_name='Description')),
            ],
            options={
                'verbose_name': 'User Rating',
                'verbose_name_plural': 'User Ratings',
            },
        ),
        migrations.AddField(
            model_name='resource',
            name='internal_rating',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='ayewa.internalrating'),
        ),
        migrations.AddField(
            model_name='resource',
            name='rank',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='ayewa.rank'),
        ),
        migrations.AddField(
            model_name='resource',
            name='scope',
            field=modelcluster.fields.ParentalManyToManyField(blank=True, to='ayewa.Scope'),
        ),
        migrations.AddField(
            model_name='resource',
            name='user_rating',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='ayewa.userrating'),
        ),
    ]
