# Generated by Codex on 2026-06-28

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('api_v1', '0016_mdyplateorderstagingqiniuimageuploadaudit'),
    ]

    operations = [
        migrations.CreateModel(
            name='MDYPlateOrderStagingQiniuImageUploadState',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('name', models.CharField(max_length=80, unique=True, verbose_name='任务名称')),
                ('last_staging_id', models.PositiveBigIntegerField(default=0, verbose_name='已扫描到的暂存表ID')),
                ('staging_finished', models.BooleanField(default=False, verbose_name='暂存表是否扫描完成')),
                ('scanned_staging_rows', models.PositiveBigIntegerField(default=0, verbose_name='已扫描暂存行数')),
                ('discovered_image_items', models.PositiveBigIntegerField(default=0, verbose_name='发现图片数')),
                ('created_audit_rows', models.PositiveBigIntegerField(default=0, verbose_name='创建审计数')),
                ('existing_audit_rows', models.PositiveBigIntegerField(default=0, verbose_name='已存在审计数')),
                ('last_heartbeat_at', models.DateTimeField(blank=True, null=True, verbose_name='最后心跳时间')),
            ],
            options={
                'verbose_name': '开版暂存开版图七牛上传状态',
                'verbose_name_plural': '开版暂存开版图七牛上传状态',
                'db_table': 'api_mdy_plate_order_staging_qiniu_image_upload_state',
                'ordering': ['name'],
            },
        ),
    ]
