# Generated by Django 3.0.6 on 2020-09-14 08:54

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


class Migration(migrations.Migration):

    dependencies = [
        ('cnv_app', '0038_bamfile_users'),
    ]

    operations = [
        migrations.CreateModel(
            name='DataSet',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='UploadFile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('file', models.FileField(blank=True, upload_to='Data/bam_files')),
                ('file_name', models.CharField(max_length=255)),
                ('total_size', models.BigIntegerField(default=0)),
                ('recorded_md5', models.CharField(blank=True, max_length=32)),
                ('dataset', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='cnv_app.DataSet')),
            ],
            options={
                'unique_together': {('dataset', 'file_name', 'total_size'), ('dataset', 'recorded_md5')},
            },
        ),
    ]
