# Generated by Django 2.1.7 on 2020-11-24 19:43

import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0071_auto_20201120_1548'),
        ('inventory', '0060_boxbottlesubstitute'),
    ]

    operations = [
        migrations.CreateModel(
            name='LabelHalted',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label_code', models.CharField(max_length=20, verbose_name='标签号码')),
                ('label_pk_id', models.BigIntegerField(db_index=True, unique=True, verbose_name='标签PKID')),
                ('label_pkg', models.SmallIntegerField(verbose_name='标签类型')),
                ('status', models.SmallIntegerField(choices=[(0, '无状态'), (4, '销售退库'), (5, '标签退库')], db_index=True, verbose_name='标签状态')),
                ('message', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=50), size=None)),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='生成日期')),
                ('tm_created', models.DateTimeField(auto_now_add=True, verbose_name='生成时间')),
                ('company_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='labelhalted_company', to='company.Company', verbose_name='公司名称')),
            ],
            options={
                'verbose_name': '特殊状态标签表',
                'verbose_name_plural': '特殊状态标签表',
            },
        ),
    ]
