# Generated by Django 2.0.2 on 2018-04-12 12:26

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('portal', '0011_auto_20180405_1919'),
    ]

    operations = [
        migrations.CreateModel(
            name='Competition',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('description', models.TextField()),
                ('climbingwall', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.ClimbingWall')),
            ],
        ),
        migrations.CreateModel(
            name='CompetitionParticipant',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('competition', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.Competition')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='CompetitionResult',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('result', models.CharField(choices=[('T', 'TOP'), ('F', 'FLASH'), ('SG', 'SECOND GO'), ('RP', 'RED POINT')], max_length=2)),
                ('participant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.CompetitionParticipant')),
                ('route', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.Route')),
            ],
        ),
    ]
