# Generated by Django 3.1.4 on 2022-08-26 15:21

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('company', '0300_user_roles'),
        ('sales', '0295_auto_20220816_1029'),
    ]

    operations = [
        migrations.CreateModel(
            name='VoidLabel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label_code', models.CharField(blank=True, max_length=20, null=True, verbose_name='标签序号')),
                ('reason', models.CharField(blank=True, max_length=200, null=True, verbose_name='原因')),
                ('remark', models.CharField(blank=True, max_length=30, null=True, 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='扫码单位')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='操作人')),
            ],
            options={
                'verbose_name': '失效的标签',
                'verbose_name_plural': '失效的标签',
            },
        ),
    ]
