# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
import django.utils.timezone
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='DjangoTask',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True, serialize=False)),
                ('celery_task_id', models.UUIDField(unique=True, verbose_name='Celery task id')),
                ('started_at', models.DateTimeField(verbose_name='Started At', default=django.utils.timezone.now)),
                ('finished_at', models.DateTimeField(verbose_name='Finished At', null=True)),
                ('user', models.ForeignKey(related_name='tasks', verbose_name='User', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
