# Generated by Django 3.1.4 on 2021-01-21 14:34

import django.contrib.postgres.fields
import django.db.models.deletion
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name="Description",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(max_length=7)),
                ("description", models.TextField()),
            ],
            options={
                "ordering": ("name",),
            },
        ),
        migrations.CreateModel(
            name="OldnameNewnameTableLeft",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "name_2020",
                    models.CharField(blank=True, max_length=250),
                ),
                (
                    "name_1998",
                    models.CharField(blank=True, max_length=250),
                ),
                (
                    "alternative_name",
                    models.CharField(blank=True, max_length=250),
                ),
            ],
            options={
                "verbose_name": "Organized by new name",
                "verbose_name_plural": "Organized by new name",
            },
        ),
        migrations.CreateModel(
            name="OldnameNewnameTableRight",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "name_1998",
                    models.CharField(blank=True, max_length=250),
                ),
                (
                    "name_2020",
                    models.CharField(blank=True, max_length=250),
                ),
                (
                    "alternative_name",
                    models.CharField(blank=True, max_length=250),
                ),
            ],
            options={
                "verbose_name": "Organized by Oldname",
                "verbose_name_plural": "Organized by Oldname",
            },
        ),
        migrations.CreateModel(
            name="ProteinDetail",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(max_length=25)),
                (
                    "accession",
                    models.CharField(blank=True, max_length=25),
                ),
                ("sequence", models.TextField(blank=True)),
                ("fulllength", models.TextField(blank=True)),
                ("species", models.TextField(blank=True)),
                ("taxon", models.TextField(blank=True)),
                ("domain_N", models.TextField(blank=True)),
                ("pfam_N", models.CharField(blank=True, max_length=25)),
                ("cdd_N", models.CharField(blank=True, max_length=25)),
                (
                    "start_N",
                    models.CharField(blank=True, max_length=10),
                ),
                ("end_N", models.CharField(blank=True, max_length=10)),
                ("domain_M", models.TextField(blank=True)),
                ("pfam_M", models.CharField(blank=True, max_length=25)),
                ("cdd_M", models.CharField(blank=True, max_length=25)),
                (
                    "start_M",
                    models.CharField(blank=True, max_length=10),
                ),
                ("end_M", models.CharField(blank=True, max_length=10)),
                ("domain_C", models.TextField(blank=True)),
                ("pfam_C", models.CharField(blank=True, max_length=25)),
                ("cdd_C", models.CharField(blank=True, max_length=10)),
                (
                    "start_C",
                    models.CharField(blank=True, max_length=10),
                ),
                ("end_C", models.CharField(blank=True, max_length=10)),
            ],
            options={
                "verbose_name": "Three domain detail",
                "verbose_name_plural": "Three domain details",
                "ordering": ("accession",),
            },
        ),
        migrations.CreateModel(
            name="StructureDatabase",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(blank=True, max_length=25)),
                (
                    "oldname",
                    models.CharField(blank=True, max_length=75),
                ),
                (
                    "accession",
                    models.CharField(blank=True, max_length=75),
                ),
                (
                    "pdbid",
                    django.contrib.postgres.fields.ArrayField(
                        base_field=models.CharField(blank=True, max_length=1000),
                        default=list,
                        size=None,
                    ),
                ),
                (
                    "pubmedid",
                    models.CharField(blank=True, max_length=75),
                ),
                ("year", models.CharField(blank=True, max_length=5)),
                (
                    "modified",
                    models.CharField(
                        choices=[("yes", "Yes"), ("no", "No")],
                        default="Yes",
                        max_length=100,
                    ),
                ),
                ("comment", models.TextField(blank=True, null=True)),
            ],
            options={
                "verbose_name": "Structure Information",
                "verbose_name_plural": "Structure Database",
                "ordering": ("name",),
            },
        ),
        migrations.CreateModel(
            name="UserUploadData",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "session_key",
                    models.CharField(default=None, max_length=250, null=True),
                ),
                ("name", models.CharField(max_length=250, null=True)),
                ("sequence", models.TextField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name="PesticidalProteinPrivateDatabase",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "submittersname",
                    models.CharField(blank=True, max_length=25, null=True),
                ),
                (
                    "submittersemail",
                    models.EmailField(max_length=70, null=True),
                ),
                (
                    "name",
                    models.CharField(
                        blank=True,
                        max_length=15,
                        verbose_name="Protein Name",
                    ),
                ),
                (
                    "sequence",
                    models.TextField(blank=True, verbose_name="Protein Sequence"),
                ),
                (
                    "bacterium",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=True,
                    ),
                ),
                (
                    "bacterium_textbox",
                    models.CharField(blank=True, max_length=250, null=True),
                ),
                (
                    "taxonid",
                    models.CharField(blank=True, max_length=25, null=True),
                ),
                ("year", models.CharField(blank=True, max_length=5)),
                (
                    "accession",
                    models.CharField(
                        blank=True,
                        max_length=25,
                        verbose_name="NCBI accession number",
                    ),
                ),
                (
                    "partnerprotein",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=True,
                    ),
                ),
                (
                    "partnerprotein_textbox",
                    models.CharField(blank=True, max_length=250, null=True),
                ),
                (
                    "toxicto",
                    models.CharField(blank=True, max_length=250),
                ),
                (
                    "nontoxic",
                    models.CharField(blank=True, max_length=250),
                ),
                ("dnasequence", models.TextField(null=True)),
                (
                    "pdbcode",
                    models.CharField(blank=True, max_length=10),
                ),
                (
                    "publication",
                    models.TextField(blank=True, null=True),
                ),
                (
                    "comment",
                    models.TextField(
                        blank=True,
                        null=True,
                        verbose_name="User comments",
                    ),
                ),
                (
                    "uploaded",
                    models.DateTimeField(
                        default=django.utils.timezone.now,
                        verbose_name="Uploaded",
                    ),
                ),
                (
                    "alignresults",
                    models.TextField(blank=True, null=True),
                ),
                (
                    "predict_name",
                    models.TextField(blank=True, null=True),
                ),
                (
                    "terms_conditions",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=False,
                    ),
                ),
                (
                    "admin_comments",
                    models.TextField(blank=True, null=True),
                ),
                ("public", models.BooleanField(default=False)),
                (
                    "private",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=True,
                    ),
                ),
                (
                    "oldname",
                    models.CharField(blank=True, max_length=105),
                ),
                ("othernames", models.TextField(blank=True)),
                (
                    "fastasequence_file",
                    models.FileField(
                        blank=True,
                        null=True,
                        upload_to="fastasequence_files/",
                    ),
                ),
                (
                    "name_category",
                    models.CharField(blank=True, max_length=15),
                ),
                (
                    "created_on",
                    models.DateTimeField(
                        blank=True,
                        default=django.utils.timezone.now,
                        null=True,
                        verbose_name="Created on",
                    ),
                ),
                (
                    "edited_on",
                    models.DateTimeField(
                        blank=True,
                        default=django.utils.timezone.now,
                        null=True,
                        verbose_name="Edited on",
                    ),
                ),
                (
                    "admin_user",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
                (
                    "created_by",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="pesticidalproteinprivatedatabase_created_by",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
                (
                    "edited_by",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="pesticidalproteinprivatedatabase_edited_by",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            options={
                "verbose_name": "Private Sequence",
                "verbose_name_plural": "Private Sequences",
                "ordering": ("name",),
            },
        ),
        migrations.CreateModel(
            name="PesticidalProteinHiddenSequence",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "name",
                    models.CharField(default="None", max_length=15),
                ),
                ("accession", models.CharField(max_length=25)),
                (
                    "year",
                    models.CharField(default="None", max_length=5),
                ),
                ("sequence", models.TextField(blank=True)),
                (
                    "bacterium",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=True,
                    ),
                ),
                (
                    "bacterium_textbox",
                    models.CharField(default="Bacillus Thuringiensis", max_length=250),
                ),
                (
                    "strain",
                    models.CharField(default="None", max_length=250),
                ),
                (
                    "publication",
                    models.TextField(blank=True, null=True),
                ),
                (
                    "family",
                    models.CharField(blank=True, default="None", max_length=305),
                ),
                (
                    "toxicto",
                    models.CharField(blank=True, default="None", max_length=250),
                ),
                (
                    "nontoxic",
                    models.CharField(blank=True, default="None", max_length=250),
                ),
                (
                    "mammalian_active",
                    models.CharField(blank=True, default="None", max_length=250),
                ),
                (
                    "pdbcode",
                    models.CharField(blank=True, default="None", max_length=10),
                ),
                ("comment", models.TextField(blank=True, null=True)),
                (
                    "submittersname",
                    models.CharField(default="None", max_length=25),
                ),
                (
                    "submittersemail",
                    models.EmailField(default="None", max_length=70),
                ),
                (
                    "taxonid",
                    models.CharField(default="None", max_length=25),
                ),
                (
                    "partnerprotein",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=True,
                    ),
                ),
                (
                    "partnerprotein_textbox",
                    models.CharField(default="None", max_length=250),
                ),
                ("dnasequence", models.TextField(null=True)),
                (
                    "uploaded",
                    models.DateTimeField(
                        default=django.utils.timezone.now,
                        verbose_name="Uploaded",
                    ),
                ),
                (
                    "alignresults",
                    models.TextField(blank=True, null=True),
                ),
                (
                    "predict_name",
                    models.TextField(blank=True, null=True),
                ),
                (
                    "terms_conditions",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=False,
                    ),
                ),
                (
                    "admin_comments",
                    models.TextField(blank=True, null=True),
                ),
                ("public", models.BooleanField(default=False)),
                (
                    "private",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=True,
                    ),
                ),
                (
                    "oldname",
                    models.CharField(blank=True, max_length=105),
                ),
                ("othernames", models.TextField(blank=True)),
                (
                    "fastasequence_file",
                    models.FileField(
                        blank=True,
                        null=True,
                        upload_to="fastasequence_files/",
                    ),
                ),
                (
                    "admin_user",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            options={
                "verbose_name": "Hidden sequence",
                "verbose_name_plural": "Hidden sequences for naming purpose",
            },
        ),
        migrations.CreateModel(
            name="PesticidalProteinDatabase",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "submittersname",
                    models.CharField(
                        blank=True,
                        default="Uploaded by Suresh",
                        max_length=125,
                    ),
                ),
                (
                    "submittersemail",
                    models.EmailField(blank=True, max_length=70),
                ),
                (
                    "name",
                    models.CharField(
                        blank=True,
                        max_length=15,
                        verbose_name="Protein Name",
                    ),
                ),
                (
                    "oldname",
                    models.CharField(blank=True, max_length=105),
                ),
                ("othernames", models.TextField(blank=True)),
                (
                    "accession",
                    models.CharField(
                        blank=True,
                        max_length=25,
                        verbose_name="NCBI accession number",
                    ),
                ),
                ("year", models.CharField(blank=True, max_length=5)),
                (
                    "sequence",
                    models.TextField(blank=True, verbose_name="Protein Sequence"),
                ),
                (
                    "bacterium",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=True,
                    ),
                ),
                (
                    "taxonid",
                    models.CharField(blank=True, max_length=25, null=True),
                ),
                (
                    "bacterium_textbox",
                    models.CharField(blank=True, max_length=250, null=True),
                ),
                (
                    "partnerprotein",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=True,
                    ),
                ),
                (
                    "partnerprotein_textbox",
                    models.CharField(blank=True, max_length=250, null=True),
                ),
                (
                    "toxicto",
                    models.CharField(blank=True, max_length=250),
                ),
                (
                    "nontoxic",
                    models.CharField(blank=True, max_length=250),
                ),
                ("dnasequence", models.TextField(blank=True)),
                (
                    "publication",
                    models.TextField(blank=True, null=True),
                ),
                (
                    "comment",
                    models.TextField(
                        blank=True,
                        null=True,
                        verbose_name="User comments",
                    ),
                ),
                (
                    "uploaded",
                    models.DateTimeField(
                        default=django.utils.timezone.now,
                        verbose_name="Uploaded",
                    ),
                ),
                (
                    "fastasequence_file",
                    models.FileField(
                        blank=True,
                        null=True,
                        upload_to="fastasequence_files/",
                    ),
                ),
                (
                    "name_category",
                    models.CharField(blank=True, max_length=15),
                ),
                ("public", models.BooleanField(default=True)),
                (
                    "pdbcode",
                    models.CharField(blank=True, max_length=10),
                ),
                (
                    "predict_name",
                    models.TextField(blank=True, null=True),
                ),
                (
                    "terms_conditions",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=False,
                    ),
                ),
                (
                    "admin_comments",
                    models.TextField(blank=True, null=True),
                ),
                (
                    "created_on",
                    models.DateTimeField(
                        blank=True,
                        default=django.utils.timezone.now,
                        null=True,
                        verbose_name="Created on",
                    ),
                ),
                (
                    "edited_on",
                    models.DateTimeField(
                        blank=True,
                        default=django.utils.timezone.now,
                        null=True,
                        verbose_name="Edited on",
                    ),
                ),
                (
                    "published",
                    models.BooleanField(
                        choices=[(True, "Yes"), (False, "No")],
                        default=False,
                    ),
                ),
                (
                    "admin_user",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
                (
                    "created_by",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="pesticidalproteindatabase_created_by",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
                (
                    "edited_by",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="pesticidalproteindatabase_edited_by",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            options={
                "verbose_name": "Public Sequence",
                "verbose_name_plural": "Public Sequences",
                "ordering": ("name",),
            },
        ),
    ]
