# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-18 19:19
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Arguments',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=80)),
                ('description', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='Subject',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=80, unique=True, validators=[django.core.validators.RegexValidator(message='Subject name have to be lower', regex='[a-z]+')])),
            ],
        ),
        migrations.AddField(
            model_name='arguments',
            name='materia',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='archive.Subject'),
        ),
    ]
