# Generated by Django 2.0.7 on 2018-09-02 16:43

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


class Migration(migrations.Migration):

    dependencies = [
        ("kaehmy", "0002_auto_20180902_1929"),
    ]

    operations = [
        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"),
                ),
            ],
            options={
                "verbose_name": "Kaehmylomake",
                "verbose_name_plural": "Kaehmylomakkeet",
            },
            bases=("kaehmy.commentparent",),
        ),
        migrations.CreateModel(
            name="CustomRole",
            fields=[
                (
                    "kaehmybaserole_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="kaehmy.KaehmyBaseRole",
                    ),
                ),
            ],
            options={
                "verbose_name": "Custom kaehmy role",
                "verbose_name_plural": "Custom kaehmy roles",
            },
            bases=("kaehmy.kaehmybaserole",),
        ),
        migrations.CreateModel(
            name="PresetRole",
            fields=[
                (
                    "kaehmybaserole_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="kaehmy.KaehmyBaseRole",
                    ),
                ),
                ("description", models.TextField(verbose_name="Description")),
            ],
            options={
                "verbose_name": "Preset kaehmy role",
                "verbose_name_plural": "Preset kaehmy roles",
            },
            bases=("kaehmy.kaehmybaserole",),
        ),
        migrations.AddField(
            model_name="application",
            name="custom_roles",
            field=models.ManyToManyField(
                blank=True, related_name="forms", to="kaehmy.CustomRole"
            ),
        ),
        migrations.AddField(
            model_name="application",
            name="preset_roles",
            field=models.ManyToManyField(
                blank=True, related_name="forms", to="kaehmy.PresetRole"
            ),
        ),
    ]
