# Generated by Django 5.2.11 on 2026-02-10 07:08

import django.db.models.deletion
import uuid
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0017_alter_user_short_name'),
    ]

    operations = [
        migrations.CreateModel(
            name='MirrorItemTask',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, help_text='primary key for the record as UUID', primary_key=True, serialize=False, verbose_name='id')),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='date and time at which a record was created', verbose_name='created on')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='date and time at which a record was last updated', verbose_name='updated on')),
                ('status', models.CharField(choices=[('pending', 'Pending'), ('processing', 'Processing'), ('completed', 'Completed'), ('failed', 'Failed')], default='pending', max_length=25)),
                ('error_details', models.TextField(blank=True, null=True)),
                ('retries', models.IntegerField(default=0)),
                ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mirror_tasks', to='core.item')),
            ],
            options={
                'verbose_name': 'Mirror item task',
                'verbose_name_plural': 'Mirror item tasks',
                'db_table': 'drive_mirror_item_task',
            },
        ),
    ]
