# -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-05-06 17:13
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [("studies", "0062_study_shared_preview")]

    operations = [
        migrations.AlterField(
            model_name="consentruling",
            name="arbiter",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="consent_rulings",
                to=settings.AUTH_USER_MODEL,
            ),
        ),
        migrations.AlterField(
            model_name="consentruling",
            name="response",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name="consent_rulings",
                to="studies.Response",
            ),
        ),
        migrations.AlterField(
            model_name="feedback",
            name="researcher",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to=settings.AUTH_USER_MODEL,
            ),
        ),
        migrations.AlterField(
            model_name="feedback",
            name="response",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name="feedback",
                to="studies.Response",
            ),
        ),
        migrations.AlterField(
            model_name="response",
            name="child",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.PROTECT, to="accounts.Child"
            ),
        ),
        migrations.AlterField(
            model_name="response",
            name="demographic_snapshot",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to="accounts.DemographicData",
            ),
        ),
        migrations.AlterField(
            model_name="response",
            name="study",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.PROTECT,
                related_name="responses",
                to="studies.Study",
            ),
        ),
        migrations.AlterField(
            model_name="responselog",
            name="response",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE, to="studies.Response"
            ),
        ),
        migrations.AlterField(
            model_name="responselog",
            name="user",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to=settings.AUTH_USER_MODEL,
            ),
        ),
        migrations.AlterField(
            model_name="study",
            name="creator",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to=settings.AUTH_USER_MODEL,
            ),
        ),
        migrations.AlterField(
            model_name="study",
            name="study_type",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.PROTECT,
                to="studies.StudyType",
                verbose_name="type",
            ),
        ),
        migrations.AlterField(
            model_name="studylog",
            name="study",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name="logs",
                related_query_name="logs",
                to="studies.Study",
            ),
        ),
        migrations.AlterField(
            model_name="studylog",
            name="user",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to=settings.AUTH_USER_MODEL,
            ),
        ),
        migrations.AlterField(
            model_name="video",
            name="response",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name="videos",
                to="studies.Response",
            ),
        ),
        migrations.AlterField(
            model_name="video",
            name="study",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.PROTECT,
                related_name="videos",
                to="studies.Study",
            ),
        ),
    ]
