# Generated by Django 3.2.12 on 2024-09-05 02:57

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


class Migration(migrations.Migration):

    dependencies = [
        ('wpm', '0068_auto_20240904_1549'),
    ]

    operations = [
        migrations.AlterField(
            model_name='handover',
            name='batch',
            field=models.CharField(blank=True, max_length=50, null=True, verbose_name='批次号'),
        ),
        migrations.AlterField(
            model_name='handover',
            name='type',
            field=models.PositiveSmallIntegerField(choices=[(10, '正常交接'), (20, '返修交接'), (30, '检验交接'), (40, '报废交接')], default=10, verbose_name='交接类型'),
        ),
        migrations.CreateModel(
            name='Handoverb',
            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='删除标记')),
                ('count', models.PositiveIntegerField(default=0, verbose_name='送料数')),
                ('handover', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wpm.handover', verbose_name='关联交接记录')),
                ('wm', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='handoverb_wm', to='wpm.wmaterial', verbose_name='关联车间库存')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
