# -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2022-05-24 11:36
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('datasets', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Dataset',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, db_index=True, max_length=200, null=True, verbose_name='Dataset name')),
                ('creation_date', models.DateTimeField(auto_now_add=True, verbose_name='Uploaded date')),
                ('last_change_date', models.DateTimeField(blank=True, null=True, verbose_name='Last change date')),
                ('is_deleted', models.BooleanField(default=False)),
                ('number_of_sequences_from_projects', models.SmallIntegerField(default=0)),
                ('number_of_sequences_from_consensus', models.SmallIntegerField(default=0)),
                ('number_of_sequences_from_references', models.SmallIntegerField(default=0)),
                ('is_processed', models.BooleanField(default=False)),
                ('is_deleted_in_file_system', models.BooleanField(default=False)),
                ('date_deleted', models.DateTimeField(blank=True, null=True, verbose_name='Date attached')),
                ('owner', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='dataset', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Dataset',
                'verbose_name_plural': 'Datasets',
                'ordering': ['-creation_date'],
            },
        ),
    ]
