# Generated by Django 3.2.12 on 2023-08-08 06:13

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


class Migration(migrations.Migration):

    dependencies = [
        ('wpm', '0009_sflogexp'),
    ]

    operations = [
        migrations.AddField(
            model_name='sflogexp',
            name='duration',
            field=models.FloatField(blank=True, null=True, verbose_name='停机时长(h)'),
        ),
        migrations.AddField(
            model_name='sflogexp',
            name='is_current_down',
            field=models.BooleanField(default=False, verbose_name='是否本班停机'),
        ),
        migrations.AddField(
            model_name='sflogexp',
            name='stlog',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='wpm.stlog', verbose_name='关联停机记录'),
        ),
        migrations.AddField(
            model_name='sflogexp',
            name='title',
            field=models.CharField(default='停机', max_length=20, verbose_name='异常名称'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='sflog',
            name='stlogs',
            field=models.ManyToManyField(through='wpm.SfLogExp', to='wpm.StLog', verbose_name='关联停机记录'),
        ),
        migrations.AlterField(
            model_name='sflogexp',
            name='cate',
            field=models.CharField(blank=True, max_length=10, null=True, verbose_name='原因类别'),
        ),
        migrations.AlterField(
            model_name='sflogexp',
            name='handler',
            field=models.CharField(default='', max_length=100, verbose_name='处理人'),
        ),
        migrations.AlterField(
            model_name='sflogexp',
            name='happen_time',
            field=models.DateTimeField(blank=True, null=True, verbose_name='发生时间'),
        ),
        migrations.AlterField(
            model_name='sflogexp',
            name='measure',
            field=models.TextField(default='', max_length=100, verbose_name='处置措施'),
        ),
        migrations.AlterField(
            model_name='sflogexp',
            name='reason',
            field=models.TextField(default='', max_length=100, verbose_name='事件原因'),
        ),
        migrations.DeleteModel(
            name='StSfLog',
        ),
    ]
