# Generated by Django 3.1.4 on 2022-06-07 18:35

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


class Migration(migrations.Migration):

    dependencies = [
        ('product', '0033_product_processflow'),
        ('company', '0294_userwechatopenids'),
        ('sales', '0276_consumerwinner_batch_code'),
    ]

    operations = [
        migrations.CreateModel(
            name='FakeLabel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('stkdetails_id', models.IntegerField(blank=True, null=True, verbose_name='销售出库明细ID')),
                ('tm_delivery', models.DateTimeField(blank=True, null=True, verbose_name='销售出库时间')),
                ('label_code', models.CharField(max_length=20, verbose_name='标签号码')),
                ('label_pkg', models.SmallIntegerField(verbose_name='标签类别')),
                ('province', models.CharField(max_length=50, verbose_name='省份')),
                ('city', models.CharField(max_length=50, verbose_name='城市')),
                ('address', models.CharField(max_length=150, verbose_name='详细地址')),
                ('distance', models.IntegerField(verbose_name='距离')),
                ('lng_lat', django.contrib.postgres.fields.ArrayField(base_field=models.DecimalField(decimal_places=8, max_digits=12, verbose_name='经纬度'), size=None)),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='生成时间')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fakelabel_agent', to='company.company', verbose_name='经销商名称')),
                ('ancestor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fakelabel_ancestor', to='company.company', verbose_name='族系')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fakelabel_company', to='company.company', verbose_name='公司名称')),
                ('consumer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fakelabel_consumer', to='sales.consumeraccount', verbose_name='消费者帐号')),
                ('product', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='fakelabel_product', to='product.product', verbose_name='产品名称')),
            ],
            options={
                'verbose_name': '假货预警',
                'verbose_name_plural': '假货预警',
            },
        ),
    ]
