# Generated by Django 3.1.4 on 2021-09-29 10:59

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0250_auto_20210924_1148'),
        ('product', '0023_auto_20210825_1032'),
    ]

    operations = [
        migrations.CreateModel(
            name='Batch',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('number', models.CharField(max_length=100, verbose_name='批次号')),
                ('dt', models.DateField(auto_now_add=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='所属公司')),
            ],
            options={
                'verbose_name': '生产批次',
                'verbose_name_plural': '生产批次',
            },
        ),
        migrations.CreateModel(
            name='LabelBatch',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label_pk_id', models.BigIntegerField(verbose_name='主箱标ID')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='product.batch', verbose_name='生产批次')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='所属公司')),
            ],
            options={
                'verbose_name': '标签生产批次',
                'verbose_name_plural': '标签生产批次',
            },
        ),
    ]
