# Generated by Django 3.1.4 on 2021-11-12 15:08

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0257_auto_20211111_1014'),
        ('thirdparty', '0008_ordersync_order_type'),
    ]

    operations = [
        migrations.CreateModel(
            name='ObjectSync',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('through_3rd', models.CharField(blank=True, db_index=True, max_length=80, null=True, verbose_name='第三方名称')),
                ('ip_address', models.CharField(max_length=100, verbose_name='ip地址')),
                ('app_name', models.CharField(max_length=20, verbose_name='app')),
                ('obj_name', models.CharField(max_length=20, verbose_name='obj')),
                ('src', models.JSONField(blank=True, default=dict, null=True, verbose_name='源数据')),
                ('result', models.JSONField(blank=True, default=dict, 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': '同步第三方发货单信息',
            },
        ),
    ]
