# Generated by Django 3.1.4 on 2021-08-04 11:18

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('company', '0238_brandrecommender_is_hidden'),
    ]

    operations = [
        migrations.CreateModel(
            name='order_sync',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dn_number', models.CharField(blank=True, db_index=True, max_length=50, null=True, verbose_name='货运单号')),
                ('through_3rd', models.CharField(db_index=True, max_length=80, verbose_name='第三方名称')),
                ('order_code', models.CharField(blank=True, max_length=50, null=True, verbose_name='订单编号')),
                ('products', models.JSONField(blank=True, default=list, null=True, verbose_name='产品信息')),
                ('customer', models.JSONField(blank=True, default=dict, null=True, verbose_name='客户信息')),
                ('storehouse', models.JSONField(blank=True, default=dict, null=True, verbose_name='仓库信息')),
                ('data', models.JSONField(blank=True, default=dict, null=True, verbose_name='接收到的原始数据')),
                ('is_ok', models.BooleanField(default=True, verbose_name='同步是否成功')),
                ('remark', models.CharField(blank=True, max_length=100, 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.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='企业ID')),
            ],
            options={
                'verbose_name': '同步第三方订单信息',
                'verbose_name_plural': '同步第三方订单信息',
            },
        ),
    ]
