# Generated by Django 4.0.7 on 2025-02-17 08:02

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='AsyncTask',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255, verbose_name='Task name')),
                ('handler', models.CharField(max_length=255, verbose_name='Task handler')),
                ('file', models.FileField(blank=True, null=True, upload_to='async_tasks', verbose_name='File')),
                ('created', models.DateTimeField(auto_now_add=True, verbose_name='Creation date')),
                ('status', models.CharField(choices=[('created', 'Created'), ('processing', 'Processing'), ('inline', 'Waiting in line'), ('error', 'Error'), ('completed', 'Completed')], default='created', max_length=255, verbose_name='Status')),
                ('status_text', models.CharField(blank=True, max_length=255, verbose_name='Status')),
                ('percent', models.CharField(blank=True, max_length=10, verbose_name='Percent')),
                ('params', models.JSONField(blank=True, null=True, verbose_name='Params')),
            ],
            options={
                'verbose_name': 'Async task',
                'verbose_name_plural': 'Async tasks',
                'ordering': ['-created'],
            },
        ),
    ]
