# Generated by Django 5.2.7 on 2025-11-11 05:24

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('stateflow', '0009_remove_order_current_state_orderstatelog'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.RemoveField(
            model_name='orderstatelog',
            name='notes',
        ),
        migrations.AddField(
            model_name='orderstatelog',
            name='cancelled_at',
            field=models.DateTimeField(blank=True, null=True, verbose_name='撤销时间'),
        ),
        migrations.AddField(
            model_name='orderstatelog',
            name='is_cancelled',
            field=models.BooleanField(default=False, verbose_name='是否已撤销'),
        ),
        migrations.AlterField(
            model_name='orderstatelog',
            name='completed_by',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='操作人'),
        ),
        migrations.AlterField(
            model_name='orderstatelog',
            name='state',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='stateflow.state', verbose_name='状态'),
        ),
        migrations.AlterModelTable(
            name='orderstatelog',
            table='order_state_log',
        ),
    ]
