# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-25 22:31
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('webapp', '0037_auto_20180125_2131'),
    ]

    operations = [
        migrations.CreateModel(
            name='CommentParent',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='', max_length=255, verbose_name='Name')),
                ('email', models.EmailField(default='', max_length=254, verbose_name='Email')),
                ('timestamp', models.DateTimeField(default=django.utils.timezone.now, verbose_name='Timestamp')),
            ],
        ),
        migrations.CreateModel(
            name='CustomRole',
            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')),
            ],
            options={
                'verbose_name_plural': 'Custom kaehmy roles',
                'verbose_name': 'Custom kaehmy role',
            },
            bases=('webapp.baserole',),
        ),
        migrations.CreateModel(
            name='PresetRole',
            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')),
            ],
            options={
                'verbose_name_plural': 'Preset kaehmy roles',
                'verbose_name': 'Preset kaehmy role',
            },
            bases=('webapp.presetrole',),
        ),
        migrations.CreateModel(
            name='TelegramChannel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('channel_id', models.CharField(max_length=255, unique=True)),
            ],
            options={
                'verbose_name_plural': 'Telegram channels',
                'verbose_name': 'Telegram channel',
            },
        ),
        migrations.CreateModel(
            name='Application',
            fields=[
                ('commentparent_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='kaehmy.CommentParent')),
                ('phone_number', models.CharField(default='', max_length=10, verbose_name='Phone number')),
                ('year', models.IntegerField(choices=[(1, '1'), (2, '2'), (3, '3'), (4, '4'), (5, 'N')], verbose_name='Year')),
                ('text', models.TextField(default='', max_length=300, verbose_name='Text')),
                ('custom_role_name', models.CharField(blank=True, max_length=255, verbose_name='Custom role name')),
                ('custom_role_is_board', models.BooleanField(verbose_name='Board member')),
                ('custom_roles', models.ManyToManyField(blank=True, related_name='forms', to='kaehmy.CustomRole')),
                ('preset_roles', models.ManyToManyField(blank=True, related_name='forms', to='kaehmy.PresetRole')),
            ],
            options={
                'verbose_name_plural': 'Kaehmylomakkeet',
                'verbose_name': 'Kaehmylomake',
            },
            bases=('kaehmy.commentparent',),
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('commentparent_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='kaehmy.CommentParent')),
                ('message', models.TextField(verbose_name='Message')),
                ('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messages', to='kaehmy.CommentParent')),
            ],
            options={
                'verbose_name_plural': 'Kaehmykommentit',
                'verbose_name': 'Kaehmykommentti',
            },
            bases=('kaehmy.commentparent',),
        ),
    ]
