# Generated by Django 4.2.1 on 2023-06-20 11:31

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


class Migration(migrations.Migration):
    dependencies = [
        (
            "lnschema_bionty",
            "0003_alter_biontysource_entity_alter_biontysource_source_and_more",
        ),
    ]

    operations = [
        migrations.AlterField(
            model_name="cellline",
            name="bionty_source",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="cell_lines",
                to="lnschema_bionty.biontysource",
            ),
        ),
        migrations.AlterField(
            model_name="cellmarker",
            name="bionty_source",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="cell_markers",
                to="lnschema_bionty.biontysource",
            ),
        ),
        migrations.AlterField(
            model_name="cellmarker",
            name="species",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="cell_markers",
                to="lnschema_bionty.species",
            ),
        ),
        migrations.AlterField(
            model_name="celltype",
            name="bionty_source",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="cell_types",
                to="lnschema_bionty.biontysource",
            ),
        ),
        migrations.AlterField(
            model_name="disease",
            name="bionty_source",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="diseases",
                to="lnschema_bionty.biontysource",
            ),
        ),
        migrations.AlterField(
            model_name="gene",
            name="bionty_source",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="genes",
                to="lnschema_bionty.biontysource",
            ),
        ),
        migrations.AlterField(
            model_name="gene",
            name="species",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="genes",
                to="lnschema_bionty.species",
            ),
        ),
        migrations.AlterField(
            model_name="pathway",
            name="bionty_source",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="pathways",
                to="lnschema_bionty.biontysource",
            ),
        ),
        migrations.AlterField(
            model_name="pathway",
            name="genes",
            field=models.ManyToManyField(related_name="pathways", to="lnschema_bionty.gene"),
        ),
        migrations.AlterField(
            model_name="phenotype",
            name="bionty_source",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="phenotypes",
                to="lnschema_bionty.biontysource",
            ),
        ),
        migrations.AlterField(
            model_name="protein",
            name="bionty_source",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="proteins",
                to="lnschema_bionty.biontysource",
            ),
        ),
        migrations.AlterField(
            model_name="protein",
            name="species",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="proteins",
                to="lnschema_bionty.species",
            ),
        ),
        migrations.AlterField(
            model_name="readout",
            name="bionty_source",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="readouts",
                to="lnschema_bionty.biontysource",
            ),
        ),
        migrations.AlterField(
            model_name="tissue",
            name="bionty_source",
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="tissues",
                to="lnschema_bionty.biontysource",
            ),
        ),
    ]
