# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-04-05 09:04
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('playexo', '0001_initial'),
        ('auth', '0008_alter_user_username_max_length'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Course',
            fields=[
                ('id', models.CharField(max_length=30, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=200)),
                ('label', models.CharField(max_length=20)),
                ('activity', models.ManyToManyField(blank=True, to='playexo.Activity')),
            ],
        ),
        migrations.CreateModel(
            name='PLUser',
            fields=[
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)),
                ('color_blindness', models.CharField(choices=[('PR', 'Protanope'), ('DE', 'Deuteranope'), ('TR', 'Tritanope'), ('NO', 'Aucun')], default='NO', max_length=2)),
                ('activity', models.ManyToManyField(blank=True, to='playexo.Activity')),
            ],
        ),
        migrations.CreateModel(
            name='Role',
            fields=[
                ('role', models.CharField(choices=[('AD', 'Administrator'), ('IN', 'Teacher'), ('CD', 'Conceptor'), ('LE', 'Student'), ('OB', 'Observeur')], default='LE', max_length=2, primary_key=True, serialize=False)),
            ],
        ),
        migrations.AddField(
            model_name='pluser',
            name='role',
            field=models.ManyToManyField(blank=True, to='classmanagement.Role'),
        ),
        migrations.AddField(
            model_name='course',
            name='user',
            field=models.ManyToManyField(blank=True, to=settings.AUTH_USER_MODEL),
        ),
    ]
