# Generated by Django 3.2.13 on 2022-09-28 12:51

import django.db.models.deletion
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ("course", "0001_initial"),
        ("wagtailcore", "0069_log_entry_jsonfield"),
    ]

    operations = [
        migrations.CreateModel(
            name="Circle",
            fields=[
                (
                    "page_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="wagtailcore.page",
                    ),
                ),
                ("description", models.TextField(blank=True, default="")),
                (
                    "goals",
                    wagtail.fields.StreamField(
                        [("goal", wagtail.blocks.TextBlock())], use_json_field=True
                    ),
                ),
                (
                    "job_situations",
                    wagtail.fields.StreamField(
                        [("job_situation", wagtail.blocks.CharBlock())],
                        use_json_field=True,
                    ),
                ),
                (
                    "experts",
                    wagtail.fields.StreamField(
                        [
                            (
                                "person",
                                wagtail.blocks.StructBlock(
                                    [
                                        ("first_name", wagtail.blocks.CharBlock()),
                                        ("last_name", wagtail.blocks.CharBlock()),
                                        ("email", wagtail.blocks.EmailBlock()),
                                        (
                                            "photo",
                                            wagtail.images.blocks.ImageChooserBlock(
                                                required=False
                                            ),
                                        ),
                                        (
                                            "biography",
                                            wagtail.blocks.RichTextBlock(
                                                required=False
                                            ),
                                        ),
                                    ]
                                ),
                            )
                        ],
                        use_json_field=True,
                    ),
                ),
            ],
            options={
                "verbose_name": "Circle",
            },
            bases=("wagtailcore.page",),
        ),
        migrations.CreateModel(
            name="LearningContent",
            fields=[
                (
                    "page_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="wagtailcore.page",
                    ),
                ),
                ("minutes", models.PositiveIntegerField(default=15)),
                (
                    "contents",
                    wagtail.fields.StreamField(
                        [
                            (
                                "video",
                                wagtail.blocks.StructBlock(
                                    [
                                        ("description", wagtail.blocks.TextBlock()),
                                        ("url", wagtail.blocks.URLBlock()),
                                    ]
                                ),
                            ),
                            (
                                "resource",
                                wagtail.blocks.StructBlock(
                                    [
                                        ("description", wagtail.blocks.TextBlock()),
                                        ("url", wagtail.blocks.URLBlock()),
                                    ]
                                ),
                            ),
                            (
                                "exercise",
                                wagtail.blocks.StructBlock(
                                    [
                                        ("description", wagtail.blocks.TextBlock()),
                                        ("url", wagtail.blocks.URLBlock()),
                                    ]
                                ),
                            ),
                            (
                                "online_training",
                                wagtail.blocks.StructBlock(
                                    [
                                        ("description", wagtail.blocks.TextBlock()),
                                        ("url", wagtail.blocks.URLBlock()),
                                    ]
                                ),
                            ),
                            (
                                "media_library",
                                wagtail.blocks.StructBlock(
                                    [
                                        ("description", wagtail.blocks.TextBlock()),
                                        ("url", wagtail.blocks.URLBlock()),
                                    ]
                                ),
                            ),
                            (
                                "document",
                                wagtail.blocks.StructBlock(
                                    [
                                        ("description", wagtail.blocks.TextBlock()),
                                        ("url", wagtail.blocks.URLBlock()),
                                    ]
                                ),
                            ),
                            (
                                "test",
                                wagtail.blocks.StructBlock(
                                    [
                                        ("description", wagtail.blocks.TextBlock()),
                                        ("url", wagtail.blocks.URLBlock()),
                                    ]
                                ),
                            ),
                            (
                                "book",
                                wagtail.blocks.StructBlock(
                                    [
                                        ("description", wagtail.blocks.TextBlock()),
                                        ("url", wagtail.blocks.URLBlock()),
                                    ]
                                ),
                            ),
                            (
                                "assignment",
                                wagtail.blocks.StructBlock(
                                    [
                                        ("description", wagtail.blocks.TextBlock()),
                                        ("url", wagtail.blocks.URLBlock()),
                                    ]
                                ),
                            ),
                        ],
                        use_json_field=None,
                    ),
                ),
            ],
            options={
                "verbose_name": "Learning Content",
            },
            bases=("wagtailcore.page",),
        ),
        migrations.CreateModel(
            name="LearningPath",
            fields=[
                (
                    "page_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="wagtailcore.page",
                    ),
                ),
            ],
            options={
                "verbose_name": "Learning Path",
            },
            bases=("wagtailcore.page",),
        ),
        migrations.CreateModel(
            name="LearningSequence",
            fields=[
                (
                    "page_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="wagtailcore.page",
                    ),
                ),
                ("icon", models.CharField(default="it-icon-ls-start", max_length=255)),
            ],
            options={
                "verbose_name": "Learning Sequence",
            },
            bases=("wagtailcore.page",),
        ),
        migrations.CreateModel(
            name="Topic",
            fields=[
                (
                    "page_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="wagtailcore.page",
                    ),
                ),
                ("is_visible", models.BooleanField(default=True)),
            ],
            options={
                "verbose_name": "Topic",
            },
            bases=("wagtailcore.page",),
        ),
        migrations.CreateModel(
            name="LearningUnit",
            fields=[
                (
                    "page_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="wagtailcore.page",
                    ),
                ),
                (
                    "course_category",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="course.coursecategory",
                    ),
                ),
            ],
            options={
                "verbose_name": "Learning Unit",
            },
            bases=("wagtailcore.page",),
        ),
    ]
