# Generated by Django 3.2.12 on 2023-07-28 09:05

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


class Migration(migrations.Migration):

    dependencies = [
        ('mtm', '0006_auto_20230725_1357'),
        ('enm', '0012_auto_20230725_1112'),
    ]

    operations = [
        migrations.CreateModel(
            name='EnStat2',
            fields=[
                ('id', models.CharField(editable=False, help_text='主键ID', max_length=20, primary_key=True, serialize=False, verbose_name='主键ID')),
                ('create_time', models.DateTimeField(default=django.utils.timezone.now, help_text='创建时间', verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, help_text='修改时间', verbose_name='修改时间')),
                ('is_deleted', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('year_s', models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='班年')),
                ('month_s', models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='班月')),
                ('industry_total_val', models.FloatField(blank=True, help_text='万元', null=True, verbose_name='工业总产值')),
                ('industry_add_val', models.FloatField(blank=True, help_text='万元', null=True, verbose_name='工业增加值')),
                ('elec_consume', models.FloatField(blank=True, help_text='kw·h', null=True, verbose_name='总电耗')),
                ('elec_coal_consume', models.FloatField(blank=True, help_text='tce', null=True, verbose_name='电量折标煤')),
                ('pcoal_consume', models.FloatField(blank=True, help_text='t', null=True, verbose_name='煤粉消耗')),
                ('pcoal_val', models.FloatField(blank=True, null=True, verbose_name='煤粉热值')),
                ('pcoal_coal_consume', models.FloatField(blank=True, help_text='tce', null=True, verbose_name='煤粉折标煤')),
                ('en_consume', models.FloatField(blank=True, help_text='tce', null=True, verbose_name='能源消耗')),
                ('en_consume_unit', models.FloatField(blank=True, null=True, verbose_name='单位工业总产值能耗')),
                ('en_add_consume_unit', models.FloatField(blank=True, null=True, verbose_name='单位工业增加值能耗')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='enstat',
            name='cair_consume',
            field=models.FloatField(blank=True, help_text='m3', null=True, verbose_name='压缩空气'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='ccr_consume',
            field=models.FloatField(blank=True, help_text='t', null=True, verbose_name='电石渣消耗'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='elec_coal_consume',
            field=models.FloatField(blank=True, help_text='tce', null=True, verbose_name='电量折标煤'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='en_consume_unit',
            field=models.FloatField(blank=True, help_text='tce/t', null=True, verbose_name='单位产品能耗'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='equip_elec_data',
            field=models.JSONField(blank=True, default=list, verbose_name='设备电耗数据'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='kiln_end_heat',
            field=models.FloatField(blank=True, help_text='tce', null=True, verbose_name='窑尾余热'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='out_steam',
            field=models.FloatField(blank=True, help_text='t', null=True, verbose_name='外送蒸汽'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='out_steam_coal',
            field=models.FloatField(blank=True, help_text='tce', null=True, verbose_name='外送蒸汽折标煤'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='pcoal_coal_consume',
            field=models.FloatField(blank=True, help_text='tce', null=True, verbose_name='煤粉折标煤'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='pcoal_consume',
            field=models.FloatField(blank=True, help_text='t', null=True, verbose_name='煤粉消耗'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='shut_hour',
            field=models.FloatField(blank=True, help_text='h', null=True, verbose_name='停机时长'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='total_hour_now',
            field=models.FloatField(blank=True, help_text='h', null=True, verbose_name='动态总时长'),
        ),
        migrations.AddField(
            model_name='enstat',
            name='water_consume',
            field=models.FloatField(blank=True, help_text='t', null=True, verbose_name='水消耗'),
        ),
        migrations.AddField(
            model_name='mpointstat',
            name='team',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mtm.team', verbose_name='关联班组'),
        ),
        migrations.AlterField(
            model_name='mpointstat',
            name='type',
            field=models.CharField(default='hour', help_text='year/month/day/year_s/month_s/month_st/day_s/sflog/hour_s/hour', max_length=50, verbose_name='统计维度'),
        ),
    ]
