# Generated by Django 5.2.7 on 2025-11-11 03:51

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


class Migration(migrations.Migration):

    dependencies = [
        ('stateflow', '0001_initial'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='state',
            name='data',
        ),
        migrations.CreateModel(
            name='StateParameter',
            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='更新时间')),
                ('key', models.CharField(max_length=100, verbose_name='参数键')),
                ('value', models.CharField(max_length=200, verbose_name='参数值')),
                ('description', models.TextField(blank=True, verbose_name='参数描述')),
                ('state', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='parameters', to='stateflow.state', verbose_name='关联参数')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
