# Generated by Django 3.2.12 on 2023-11-22 07:51

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


class Migration(migrations.Migration):

    dependencies = [
        ('wpm', '0033_sflog_total_hour'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='sflogexp',
            name='cate',
        ),
        migrations.RemoveField(
            model_name='sflogexp',
            name='handler',
        ),
        migrations.RemoveField(
            model_name='sflogexp',
            name='happen_time',
        ),
        migrations.RemoveField(
            model_name='sflogexp',
            name='is_current_down',
        ),
        migrations.RemoveField(
            model_name='sflogexp',
            name='measure',
        ),
        migrations.RemoveField(
            model_name='sflogexp',
            name='reason',
        ),
        migrations.RemoveField(
            model_name='sflogexp',
            name='title',
        ),
        migrations.AddField(
            model_name='sflogexp',
            name='note',
            field=models.TextField(blank=True, default='', verbose_name='处理备注'),
        ),
        migrations.AddField(
            model_name='stlog',
            name='cate',
            field=models.CharField(blank=True, max_length=10, null=True, verbose_name='原因类别'),
        ),
        migrations.AddField(
            model_name='stlog',
            name='handler',
            field=models.CharField(default='', max_length=100, verbose_name='处理人'),
        ),
        migrations.AddField(
            model_name='stlog',
            name='is_shutdown',
            field=models.BooleanField(default=False, verbose_name='是否是停机'),
        ),
        migrations.AddField(
            model_name='stlog',
            name='measure',
            field=models.TextField(default='', max_length=100, verbose_name='处置措施'),
        ),
        migrations.AddField(
            model_name='stlog',
            name='reason',
            field=models.TextField(default='', max_length=100, verbose_name='事件原因'),
        ),
        migrations.AddField(
            model_name='stlog',
            name='sflog',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='wpm.sflog', verbose_name='发生时所在值班'),
        ),
        migrations.AddField(
            model_name='stlog',
            name='sflogs',
            field=models.ManyToManyField(related_name='stlog_sflogs', through='wpm.SfLogExp', to='wpm.SfLog', verbose_name='关联所有当班'),
        ),
        migrations.AddField(
            model_name='stlog',
            name='title',
            field=models.CharField(default='', max_length=20, verbose_name='异常名称'),
        ),
        migrations.AlterField(
            model_name='sflog',
            name='stlogs',
            field=models.ManyToManyField(related_name='sflog_stlogs', through='wpm.SfLogExp', to='wpm.StLog', verbose_name='关联异常记录'),
        ),
        migrations.AlterField(
            model_name='sflogexp',
            name='duration',
            field=models.FloatField(blank=True, null=True, verbose_name='持续时长(h)'),
        ),
        migrations.AlterField(
            model_name='sflogexp',
            name='stlog',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wpm.stlog', verbose_name='关联异常记录'),
        ),
        migrations.AlterField(
            model_name='stlog',
            name='duration',
            field=models.FloatField(blank=True, null=True, verbose_name='持续时间(h)'),
        ),
        migrations.AlterField(
            model_name='stlog',
            name='end_time',
            field=models.DateTimeField(blank=True, null=True, verbose_name='结束时间'),
        ),
        migrations.AlterField(
            model_name='stlog',
            name='start_time',
            field=models.DateTimeField(verbose_name='发生时间'),
        ),
    ]
