# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-04 13:12
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Exercise',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=70, verbose_name='tytuł')),
                ('text', models.TextField(blank=True, verbose_name='tekst')),
                ('is_active', models.BooleanField(default=True, verbose_name='czy aktywne?')),
                ('yt_video', embed_video.fields.EmbedVideoField(blank=True, null=True, verbose_name='link youtube')),
            ],
            options={
                'verbose_name': 'ćwiczenie',
                'verbose_name_plural': 'ćwiczenia',
            },
        ),
        migrations.CreateModel(
            name='ExerciseTaskPosition',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('position', models.PositiveIntegerField(blank=True, default=0, verbose_name='pozycja')),
                ('exercise', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='exercise_task_positions', to='exercises.Exercise', verbose_name='cwiczenie')),
            ],
            options={
                'verbose_name': 'ćwiczenie w zadaniu',
                'verbose_name_plural': 'ćwiczenia w zadaniach',
                'ordering': ('position',),
            },
        ),
    ]
