# Generated by Django 2.1.7 on 2020-09-01 18:30

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0061_changelog'),
        ('inventory', '0042_batch_reference_id'),
    ]

    operations = [
        migrations.CreateModel(
            name='StorehouseBD09',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('bd09_lnglat', django.contrib.postgres.fields.ArrayField(base_field=models.DecimalField(blank=True, decimal_places=8, max_digits=12), size=None)),
                ('ancestor_id', models.IntegerField(blank=True, db_index=True, null=True, verbose_name='族系')),
                ('remark', models.CharField(blank=True, max_length=50, null=True, verbose_name='备注')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('company', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, related_name='storehousebd09_company', to='company.Company', verbose_name='公司')),
            ],
            options={
                'verbose_name': '仓库地理位置',
                'verbose_name_plural': '仓库地理位置',
            },
        ),
        migrations.AddField(
            model_name='batch',
            name='bd09_lnglat1',
            field=models.DecimalField(blank=True, decimal_places=8, max_digits=12, null=True, verbose_name='开始扫码地理位置'),
        ),
        migrations.AddField(
            model_name='batch',
            name='bd09_lnglat2',
            field=models.DecimalField(blank=True, decimal_places=8, max_digits=12, null=True, verbose_name='结束扫码地理位置'),
        ),
    ]
