# Generated by Django 3.1.4 on 2021-06-21 14:19

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0212_companycfg_mes_inbound_qc_check_needed'),
    ]

    operations = [
        migrations.AddField(
            model_name='brands',
            name='reset_tm',
            field=models.DateTimeField(blank=True, null=True, verbose_name='重置时间'),
        ),
        migrations.AddField(
            model_name='brands',
            name='settle_method',
            field=models.SmallIntegerField(blank=True, choices=[(0, '不重置'), (1, '年度'), (2, '季度'), (3, '月度')], default=0, null=True, verbose_name='重置方法'),
        ),
        migrations.AddField(
            model_name='brands_level',
            name='reset_tm',
            field=models.DateTimeField(blank=True, null=True, verbose_name='重置时间'),
        ),
        migrations.CreateModel(
            name='Brands_Agent_Level_Records',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ancestor_id', models.IntegerField(blank=True, null=True, verbose_name='祖籍ID')),
                ('brand_name', models.CharField(max_length=100, verbose_name='品牌名称')),
                ('brand_level_name', models.CharField(max_length=100, verbose_name='品牌等级名称')),
                ('reset_tm', models.DateTimeField(blank=True, null=True, verbose_name='重置时间')),
                ('tm', models.DateTimeField(auto_now_add=True, null=True, 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': '经销商等级记录',
            },
        ),
    ]
