# Generated by Django 3.2.20 on 2024-01-21 18:42

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

import vbv_lernwelt.course.models


class Migration(migrations.Migration):
    initial = True

    dependencies = [
        ("course", "0006_auto_20231221_1411"),
        ("learnpath", "0014_alter_learningunit_feedback_user"),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name="SelfEvaluationFeedback",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("feedback_submitted", models.BooleanField(default=False)),
                (
                    "feedback_provider_user",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="feedback_provider_user",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
                (
                    "feedback_requester_user",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="feedback_requester_user",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
                (
                    "learning_unit",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to="learnpath.learningunit",
                    ),
                ),
            ],
        ),
        migrations.CreateModel(
            name="CourseCompletionFeedback",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "provider_evaluation_feedback",
                    models.CharField(
                        choices=[
                            (
                                vbv_lernwelt.course.models.CourseCompletionStatus[
                                    "SUCCESS"
                                ],
                                "SUCCESS",
                            ),
                            (
                                vbv_lernwelt.course.models.CourseCompletionStatus[
                                    "FAIL"
                                ],
                                "FAIL",
                            ),
                            (
                                vbv_lernwelt.course.models.CourseCompletionStatus[
                                    "UNKNOWN"
                                ],
                                "UNKNOWN",
                            ),
                        ],
                        default="UNKNOWN",
                        max_length=255,
                    ),
                ),
                (
                    "feedback",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to="self_evaluation_feedback.selfevaluationfeedback",
                    ),
                ),
                (
                    "requester_evaluation",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to="course.coursecompletion",
                    ),
                ),
            ],
        ),
    ]
