# Generated by Django 2.1.7 on 2020-12-24 14:35

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0102_third_party_label_bind_label_bar_code'),
    ]

    operations = [
        migrations.CreateModel(
            name='Agent_Brands_Level',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('all_money', models.IntegerField(blank=True, default=0, null=True, verbose_name='全部金额')),
                ('all_num', models.IntegerField(blank=True, default=0, null=True, verbose_name='全部数量')),
                ('tm', models.DateTimeField(auto_now_add=True, null=True, verbose_name='时间')),
                ('brand', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='company.Brands', verbose_name='品牌')),
                ('brand_level', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='company.Brands_Level', verbose_name='品牌等级')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='company.Company', verbose_name='公司')),
            ],
            options={
                'verbose_name': '品牌管理',
                'verbose_name_plural': '品牌管理',
            },
        ),
        migrations.CreateModel(
            name='Agent_Brands_Records',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('product_id', models.IntegerField(blank=True, null=True, verbose_name='产品ID')),
                ('product_name', models.CharField(max_length=100, verbose_name='产品名称')),
                ('product_num', models.CharField(max_length=100, verbose_name='产品数量')),
                ('product_money', models.DecimalField(blank=True, decimal_places=2, default=100, max_digits=10, null=True, verbose_name='产品价格')),
                ('tm', models.DateTimeField(auto_now_add=True, null=True, verbose_name='时间')),
                ('brand', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='company.Brands', verbose_name='品牌')),
                ('company', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='company.Company', verbose_name='公司')),
            ],
            options={
                'verbose_name': '经销商等级写入记录',
                'verbose_name_plural': '经销商等级写入记录',
            },
        ),
    ]
