# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-05 10:16
from __future__ import unicode_literals

import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields


class Migration(migrations.Migration):

    dependencies = [
        ('users', '0002_auto_20171005_1216'),
        ('tasks', '0006_auto_20171004_1644'),
    ]

    operations = [
        migrations.CreateModel(
            name='ApprenticeTaskMarkCriteriaApprenticeVideo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
                ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
                ('apprentice', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='apprentice_scores', to='users.Apprentice', verbose_name='mentor')),
                ('apprentice_video', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='apprentice_scores', to='tasks.ApprenticeVideo', verbose_name='video do zadania')),
                ('task_mark_criteria', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='apprentice_scores', to='tasks.TaskMarkCriteria', verbose_name='kryterium oceny')),
            ],
            options={
                'verbose_name': 'ocena filmu przez innego ucznia w kryterium',
                'verbose_name_plural': 'oceny filmu przez innego ucznia w kryterium',
            },
        ),
        migrations.CreateModel(
            name='MentorTaskMarkCriteriaApprenticeVideoValue',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
                ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
                ('value', models.FloatField(validators=[django.core.validators.MaxValueValidator(10.0), django.core.validators.MinValueValidator(0.0)], verbose_name='wartość')),
                ('apprentice_video', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mentor_scores', to='tasks.ApprenticeVideo', verbose_name='video do zadania')),
                ('mentor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mentor_scores', to='users.Mentor', verbose_name='mentor')),
                ('task_mark_criteria', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mentor_scores', to='tasks.TaskMarkCriteria', verbose_name='kryterium oceny')),
            ],
            options={
                'verbose_name': 'ocena filmu przez mentora w kryterium',
                'verbose_name_plural': 'oceny filmu przez mentora w kryterium',
            },
        ),
        migrations.AlterField(
            model_name='apprenticetaskanswer',
            name='video_1',
            field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='task_answer_as_1', to='tasks.ApprenticeVideo', verbose_name='pierwsze video'),
        ),
        migrations.AlterField(
            model_name='apprenticetaskanswer',
            name='video_2',
            field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='task_answer_as_2', to='tasks.ApprenticeVideo', verbose_name='drugie video'),
        ),
    ]
