# -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2022-06-12 22:40
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', '0009_uploadfiles'),
    ]

    operations = [
        migrations.CreateModel(
            name='MetaKey',
            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)),
            ],
            options={
                'ordering': ['name'],
            },
        ),
        migrations.CreateModel(
            name='MetaKeyDataset',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('creation_date', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='uploaded date')),
                ('value', models.CharField(default='value not needed', max_length=200)),
                ('description', models.TextField(default='')),
                ('dataset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='meta_key_dataset', to='datasets.Dataset')),
                ('meta_tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='meta_key_dataset', to='datasets.MetaKey')),
                ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='meta_key_dataset', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['dataset__id', '-creation_date'],
            },
        ),
        migrations.AlterField(
            model_name='uploadfiles',
            name='is_processed',
            field=models.BooleanField(default=False, verbose_name='Is processed'),
        ),
    ]
