<reponame>Tontolda/genui<gh_stars>10-100
# Generated by Django 2.2.8 on 2020-04-27 14:27

from django.db import migrations, models
import django.db.models.deletion
import genui.utils.extensions.tasks.models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('models', '__first__'),
        ('compounds', '0001_initial'),
        ('contenttypes', '0002_remove_content_type_name'),
        ('projects', '0001_initial'),
        ('qsar', '__first__'),
    ]

    operations = [
        migrations.CreateModel(
            name='DrugExAgentTrainingStrategy',
            fields=[
                ('trainingstrategy_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.TrainingStrategy')),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.trainingstrategy',),
        ),
        migrations.CreateModel(
            name='DrugExAgentValidationStrategy',
            fields=[
                ('validationstrategy_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.ValidationStrategy')),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.validationstrategy',),
        ),
        migrations.CreateModel(
            name='DrugExNetTrainingStrategy',
            fields=[
                ('trainingstrategy_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.TrainingStrategy')),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.trainingstrategy',),
        ),
        migrations.CreateModel(
            name='DrugExValidationStrategy',
            fields=[
                ('validationstrategy_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.ValidationStrategy')),
                ('validSetSize', models.IntegerField(default=512, null=True)),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.validationstrategy',),
        ),
        migrations.CreateModel(
            name='Generator',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=256)),
                ('description', models.TextField(blank=True, max_length=10000)),
                ('created', models.DateTimeField()),
                ('updated', models.DateTimeField(verbose_name='last_updated')),
                ('polymorphic_ctype', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='polymorphic_generators.generator_set+', to='contenttypes.ContentType')),
                ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.Project')),
            ],
            options={
                'abstract': False,
            },
            bases=(genui.utils.extensions.tasks.models.TaskShortcutsMixIn, models.Model),
        ),
        migrations.CreateModel(
            name='ModelPerformanceDrugEx',
            fields=[
                ('modelperfomancenn_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.ModelPerfomanceNN')),
                ('isOnValidationSet', models.BooleanField(default=False)),
                ('note', models.CharField(blank=True, max_length=128)),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.modelperfomancenn',),
        ),
        migrations.CreateModel(
            name='ModelPerformanceDrugExAgent',
            fields=[
                ('modelperformance_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.ModelPerformance')),
                ('epoch', models.IntegerField()),
                ('note', models.CharField(blank=True, max_length=128)),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.modelperformance',),
        ),
        migrations.CreateModel(
            name='GeneratedMolSet',
            fields=[
                ('molset_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='compounds.MolSet')),
                ('source', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='compounds', to='generators.Generator')),
            ],
            options={
                'abstract': False,
            },
            bases=('compounds.molset',),
        ),
        migrations.CreateModel(
            name='DrugExNet',
            fields=[
                ('model_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.Model')),
                ('molset', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='compounds.MolSet')),
                ('parent', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='generators.DrugExNet')),
            ],
            options={
                'abstract': False,
            },
            bases=('models.model',),
        ),
        migrations.CreateModel(
            name='DrugExAgent',
            fields=[
                ('model_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.Model')),
                ('environment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='drugexEnviron', to='qsar.QSARModel')),
                ('exploitationNet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='drugexExploit', to='generators.DrugExNet')),
                ('explorationNet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='drugexExplore', to='generators.DrugExNet')),
            ],
            options={
                'abstract': False,
            },
            bases=('models.model',),
        ),
        migrations.CreateModel(
            name='DrugEx',
            fields=[
                ('generator_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='generators.Generator')),
                ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='generator', to='models.Model')),
            ],
            options={
                'abstract': False,
            },
            bases=('generators.generator',),
        ),
    ]

# Generated by Django 2.2.8 on 2020-04-27 14:27

from django.db import migrations, models
import django.db.models.deletion
import genui.utils.extensions.tasks.models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('models', '__first__'),
        ('compounds', '0001_initial'),
        ('contenttypes', '0002_remove_content_type_name'),
        ('projects', '0001_initial'),
        ('qsar', '__first__'),
    ]

    operations = [
        migrations.CreateModel(
            name='DrugExAgentTrainingStrategy',
            fields=[
                ('trainingstrategy_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.TrainingStrategy')),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.trainingstrategy',),
        ),
        migrations.CreateModel(
            name='DrugExAgentValidationStrategy',
            fields=[
                ('validationstrategy_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.ValidationStrategy')),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.validationstrategy',),
        ),
        migrations.CreateModel(
            name='DrugExNetTrainingStrategy',
            fields=[
                ('trainingstrategy_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.TrainingStrategy')),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.trainingstrategy',),
        ),
        migrations.CreateModel(
            name='DrugExValidationStrategy',
            fields=[
                ('validationstrategy_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.ValidationStrategy')),
                ('validSetSize', models.IntegerField(default=512, null=True)),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.validationstrategy',),
        ),
        migrations.CreateModel(
            name='Generator',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=256)),
                ('description', models.TextField(blank=True, max_length=10000)),
                ('created', models.DateTimeField()),
                ('updated', models.DateTimeField(verbose_name='last_updated')),
                ('polymorphic_ctype', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='polymorphic_generators.generator_set+', to='contenttypes.ContentType')),
                ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.Project')),
            ],
            options={
                'abstract': False,
            },
            bases=(genui.utils.extensions.tasks.models.TaskShortcutsMixIn, models.Model),
        ),
        migrations.CreateModel(
            name='ModelPerformanceDrugEx',
            fields=[
                ('modelperfomancenn_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.ModelPerfomanceNN')),
                ('isOnValidationSet', models.BooleanField(default=False)),
                ('note', models.CharField(blank=True, max_length=128)),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.modelperfomancenn',),
        ),
        migrations.CreateModel(
            name='ModelPerformanceDrugExAgent',
            fields=[
                ('modelperformance_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.ModelPerformance')),
                ('epoch', models.IntegerField()),
                ('note', models.CharField(blank=True, max_length=128)),
            ],
            options={
                'abstract': False,
                'base_manager_name': 'objects',
            },
            bases=('models.modelperformance',),
        ),
        migrations.CreateModel(
            name='GeneratedMolSet',
            fields=[
                ('molset_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='compounds.MolSet')),
                ('source', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='compounds', to='generators.Generator')),
            ],
            options={
                'abstract': False,
            },
            bases=('compounds.molset',),
        ),
        migrations.CreateModel(
            name='DrugExNet',
            fields=[
                ('model_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.Model')),
                ('molset', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='compounds.MolSet')),
                ('parent', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='generators.DrugExNet')),
            ],
            options={
                'abstract': False,
            },
            bases=('models.model',),
        ),
        migrations.CreateModel(
            name='DrugExAgent',
            fields=[
                ('model_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='models.Model')),
                ('environment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='drugexEnviron', to='qsar.QSARModel')),
                ('exploitationNet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='drugexExploit', to='generators.DrugExNet')),
                ('explorationNet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='drugexExplore', to='generators.DrugExNet')),
            ],
            options={
                'abstract': False,
            },
            bases=('models.model',),
        ),
        migrations.CreateModel(
            name='DrugEx',
            fields=[
                ('generator_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='generators.Generator')),
                ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='generator', to='models.Model')),
            ],
            options={
                'abstract': False,
            },
            bases=('generators.generator',),
        ),
    ]
# Generated by Django 2.2.8 on 2020-04-27 14:27