# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-08 06:24
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('webapp', '0009_merge_20170607_1854'),
    ]

    operations = [
        migrations.CreateModel(
            name='CustomKaehmyRole',
            fields=[
                ('baserole_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='webapp.BaseRole')),
            ],
            bases=('webapp.baserole',),
        ),
        migrations.CreateModel(
            name='MessageParent',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
        ),
        migrations.CreateModel(
            name='PresetKaehmyRole',
            fields=[
                ('presetrole_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='webapp.PresetRole')),
            ],
            bases=('webapp.presetrole',),
        ),
        migrations.CreateModel(
            name='KaehmyForm',
            fields=[
                ('messageparent_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='webapp.MessageParent')),
                ('name', models.TextField(verbose_name='Name')),
                ('email', models.EmailField(max_length=254, verbose_name='Email')),
                ('year', models.IntegerField(verbose_name='Year')),
            ],
            bases=('webapp.messageparent',),
        ),
        migrations.CreateModel(
            name='KaehmyMessage',
            fields=[
                ('messageparent_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='webapp.MessageParent')),
                ('name', models.TextField(verbose_name='Name')),
                ('email', models.EmailField(max_length=254, verbose_name='Email')),
                ('message', models.TextField(verbose_name='Message')),
                ('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messages', to='webapp.MessageParent')),
            ],
            bases=('webapp.messageparent',),
        ),
        migrations.DeleteModel(
            name='CustomRole',
        ),
        migrations.AddField(
            model_name='presetkaehmyrole',
            name='form',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='preset_roles', to='webapp.KaehmyForm'),
        ),
        migrations.AddField(
            model_name='customkaehmyrole',
            name='form',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='custom_roles', to='webapp.KaehmyForm'),
        ),
    ]
