# -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2022-06-11 13:16
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import fluwebvirus.formatChecker
import managing_files.models


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('managing_files', '0029_auto_20220902_1257'),
        ('datasets', '0008_auto_20220609_1119'),
    ]

    operations = [
        migrations.CreateModel(
            name='UploadFiles',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('is_valid', models.BooleanField(default=False, verbose_name='Is valid')),
                ('is_processed', models.BooleanField(default=False)),
                ('is_deleted', models.BooleanField(default=False)),
                ('number_errors', models.IntegerField(default=0)),
                ('file_name', models.CharField(blank=True, max_length=300, null=True)),
                ('creation_date', models.DateTimeField(auto_now_add=True, verbose_name='Uploaded Date')),
                ('is_deleted_in_file_system', models.BooleanField(default=False)),
                ('date_deleted', models.DateTimeField(blank=True, null=True, verbose_name='Date attached')),
                ('path_name', fluwebvirus.formatChecker.ContentTypeRestrictedFileField(blank=True, max_length=500, null=True, upload_to=managing_files.models.user_directory_path)),
                ('description', models.TextField(default='')),
                ('dataset', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='dataset_upload_metadata_file', to='datasets.Dataset')),
                ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='upload_metadata_files', to=settings.AUTH_USER_MODEL)),
                ('type_file', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='upload_metadata_files', to='managing_files.MetaKey')),
            ],
            options={
                'ordering': ['-creation_date'],
            },
        ),
    ]
