from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('api_v1', '0003_datasync'),
    ]

    operations = [
        migrations.CreateModel(
            name='MDYPlateOrderStaging',
            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='更新时间')),
                ('mdy_rowid', models.CharField(db_index=True, help_text='明道云行记录的 rowid（全局唯一）', max_length=64, unique=True, verbose_name='明道云 RowID')),
                ('raw', models.JSONField(blank=True, default=dict, help_text='getFilterRows 返回的整行原始数据（包含各 controlId 字段）', verbose_name='原始行数据')),
            ],
            options={
                'verbose_name': '明道云开版暂存',
                'verbose_name_plural': '明道云开版暂存',
                'db_table': 'api_mdy_plate_order_staging',
                'ordering': ['-created_at'],
            },
        ),
    ]
