1
0
forked from erp-dev/erp
Files
erpnew/stateflow/migrations/0021_statelogparameterrecord.py

33 lines
1.5 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Generated by Django 5.2.7 on 2025-11-15 08:48
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stateflow', '0020_stateparameter_is_image_path'),
]
operations = [
migrations.CreateModel(
name='StateLogParameterRecord',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('parameters', models.JSONField(help_text='JSON格式存储参数例如: {"temperature": "25.5", "operator": "张三"}', verbose_name='参数数据')),
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('remark', models.TextField(blank=True, default='', verbose_name='备注')),
('state_log', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parameter_records', to='stateflow.stateflowrecord', verbose_name='状态流转记录')),
],
options={
'verbose_name': '状态流转参数记录',
'verbose_name_plural': '状态流转参数记录',
'db_table': 'state_log_parameter_record',
'ordering': ['created_at'],
'indexes': [models.Index(fields=['state_log', 'created_at'], name='state_log_p_state_l_8cc99f_idx')],
},
),
]