# Generated by Django 3.2.9 on 2021-11-19 02:34

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


class Migration(migrations.Migration):

    dependencies = [
        ('em', '0009_auto_20210916_1108'),
        ('wpm', '0016_auto_20211119_0848'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='operationrecord',
            name='create_by',
        ),
        migrations.RemoveField(
            model_name='operationrecord',
            name='update_by',
        ),
        migrations.AddField(
            model_name='operationrecord',
            name='is_filled',
            field=models.BooleanField(default=True, verbose_name='是否填写'),
        ),
        migrations.AlterField(
            model_name='operation',
            name='is_submited',
            field=models.BooleanField(default=False, verbose_name='是否提交'),
        ),
        migrations.CreateModel(
            name='OperationEquip',
            fields=[
                ('id', models.BigAutoField(auto_created=True, 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='删除标记')),
                ('remark', models.TextField(blank=True, null=True, verbose_name='备注')),
                ('equip', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='em.equipment', verbose_name='生产设备')),
                ('operation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wpm.operation', verbose_name='关联操作')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
