# Generated by Django 3.2.12 on 2023-06-26 07:59

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


class Migration(migrations.Migration):

    dependencies = [
        ('wpm', '0002_auto_20230625_1709'),
        ('qm', '0001_initial'),
    ]

    operations = [
        migrations.RenameField(
            model_name='quastat',
            old_name='product',
            new_name='material',
        ),
        migrations.AddField(
            model_name='quastat',
            name='sflog',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='wpm.sflog', verbose_name='关联值班记录'),
        ),
        migrations.AlterField(
            model_name='quastat',
            name='num_ok',
            field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='合格次数'),
        ),
        migrations.AlterField(
            model_name='quastat',
            name='num_test',
            field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='检测次数'),
        ),
        migrations.AlterField(
            model_name='quastat',
            name='type',
            field=models.CharField(default='day', help_text='year/month/day/sflog', max_length=50, verbose_name='统计维度'),
        ),
        migrations.AlterField(
            model_name='quastat',
            name='val_avg',
            field=models.FloatField(blank=True, null=True, verbose_name='平均值'),
        ),
        migrations.AlterField(
            model_name='quastat',
            name='year',
            field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='年'),
        ),
    ]
