# Generated by Django 5.1.2 on 2025-01-14 14:05

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


class Migration(migrations.Migration):

    dependencies = [
        ('tcgabcd', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Mutation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('hugo_symbol', models.CharField(max_length=255)),
                ('chromosome', models.CharField(max_length=5)),
                ('start_position', models.PositiveIntegerField()),
                ('end_position', models.PositiveIntegerField()),
                ('variant_classification', models.CharField(max_length=255)),
                ('variant_type', models.CharField(max_length=50)),
                ('reference_allele', models.CharField(blank=True, max_length=50, null=True)),
                ('tumor_seq_allele1', models.CharField(blank=True, max_length=50, null=True)),
                ('tumor_seq_allele2', models.CharField(blank=True, max_length=50, null=True)),
                ('tumor_sample', models.ForeignKey(help_text='Reference to the patient associated with this mutation', on_delete=django.db.models.deletion.CASCADE, related_name='mutations', to='tcgabcd.patient')),
            ],
            options={
                'verbose_name': 'Mutation',
                'verbose_name_plural': 'Mutations',
                'indexes': [models.Index(fields=['hugo_symbol'], name='tcgabcd_mut_hugo_sy_ce1742_idx'), models.Index(fields=['chromosome'], name='tcgabcd_mut_chromos_4dfb91_idx')],
            },
        ),
    ]
