# -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-08-26 07:47
from __future__ import unicode_literals

from django.db import migrations, models
import shortuuidfield.fields


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='SalesResponsibilityInfo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('status', models.BooleanField(db_index=True, default=True, help_text='Status', verbose_name='status')),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='Create Time', verbose_name='created_at')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='Update Time', verbose_name='updated_at')),
                ('brand_id', models.CharField(blank=True, db_index=True, help_text='\u54c1\u724c\u552f\u4e00\u6807\u8bc6', max_length=32, null=True, verbose_name='brand_id')),
                ('brand_name', models.CharField(blank=True, help_text='\u54c1\u724c\u540d\u79f0', max_length=255, null=True, verbose_name='brand_name')),
                ('sr_id', shortuuidfield.fields.ShortUUIDField(blank=True, db_index=True, editable=False, help_text='\u9500\u552e\u62c5\u5f53\u552f\u4e00\u6807\u8bc6', max_length=22, null=True, unique=True)),
                ('user_id', models.CharField(blank=True, db_index=True, help_text='\u7528\u6237\u552f\u4e00\u6807\u8bc6', max_length=32, null=True, verbose_name='user_id')),
                ('unionid', models.CharField(blank=True, db_index=True, help_text='\u5fae\u4fe1 UnionID', max_length=32, null=True, verbose_name='unionid')),
                ('openid', models.CharField(blank=True, db_index=True, help_text='\u5fae\u4fe1 OpenID', max_length=32, null=True, verbose_name='openid')),
                ('name', models.CharField(blank=True, help_text='\u9500\u552e\u62c5\u5f53\u59d3\u540d', max_length=255, null=True, verbose_name='name')),
                ('phone', models.CharField(blank=True, help_text='\u9500\u552e\u62c5\u5f53\u8054\u7cfb\u7535\u8bdd', max_length=11, null=True, verbose_name='phone')),
                ('user_status', models.IntegerField(choices=[(-1, '\u5df2\u62d2\u7edd'), (0, '\u672a\u9a8c\u8bc1'), (1, '\u5df2\u6fc0\u6d3b'), (2, '\u5df2\u7981\u7528'), (3, '\u5df2\u5220\u9664'), (10, '\u5df2\u5206\u914d')], db_index=True, default=0, help_text='\u7528\u6237\u72b6\u6001', verbose_name='user_status')),
                ('refused_reason', models.TextField(blank=True, help_text='\u5ba1\u6838\u62d2\u7edd\u539f\u56e0', null=True, verbose_name='refused_reason')),
                ('is_auth', models.BooleanField(db_index=True, default=False, help_text='\u662f\u5426\u5df2\u6388\u6743', verbose_name='is_auth')),
                ('is_super', models.BooleanField(db_index=True, default=True, help_text='\u662f\u5426\u8d85\u7ea7\u9500\u552e\u62c5\u5f53', verbose_name='is_super')),
            ],
            options={
                'verbose_name': '\u9500\u552e\u62c5\u5f53\u4fe1\u606f',
                'verbose_name_plural': '\u9500\u552e\u62c5\u5f53\u4fe1\u606f',
            },
        ),
        migrations.CreateModel(
            name='SalesResponsibilityInfoModelsSaleStatisticInfo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('status', models.BooleanField(db_index=True, default=True, help_text='Status', verbose_name='status')),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='Create Time', verbose_name='created_at')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='Update Time', verbose_name='updated_at')),
                ('brand_id', models.CharField(blank=True, db_index=True, help_text='\u54c1\u724c\u552f\u4e00\u6807\u8bc6', max_length=32, null=True, verbose_name='brand_id')),
                ('distributor_id', models.CharField(db_index=True, help_text='\u7ecf\u9500\u5546\u552f\u4e00\u6807\u8bc6', max_length=32, verbose_name='distributor_id')),
                ('distributor_name', models.CharField(blank=True, help_text='\u7ecf\u9500\u5546\u540d\u79f0', max_length=255, null=True, verbose_name='distributor_name')),
                ('model_id', models.CharField(db_index=True, help_text='\u578b\u53f7\u552f\u4e00\u6807\u8bc6', max_length=32, verbose_name='model_id')),
                ('model_name', models.CharField(blank=True, db_index=True, help_text='\u578b\u53f7\u540d\u79f0', max_length=255, null=True, verbose_name='model_name')),
                ('is_important', models.BooleanField(db_index=True, default=True, help_text='\u662f\u5426\u91cd\u8981\u578b\u53f7', verbose_name='is_important')),
                ('ymd', models.IntegerField(db_index=True, default=0, help_text='\u5e74\u6708\u65e5', verbose_name='ymd')),
                ('today_num', models.IntegerField(default=0, help_text='\u652f\u6570(\u4eca\u65e5)', verbose_name='today_num')),
                ('yesterday_num', models.IntegerField(default=0, help_text='\u652f\u6570(\u6628\u65e5)', verbose_name='yesterday_num')),
                ('current_month', models.IntegerField(default=0, help_text='\u652f\u6570(\u672c\u6708)', verbose_name='current_month')),
                ('last_month', models.IntegerField(default=0, help_text='\u652f\u6570(\u4e0a\u6708)', verbose_name='last_month')),
                ('position', models.IntegerField(default=1, help_text='\u6392\u5e8f', verbose_name='position')),
            ],
            options={
                'verbose_name': '[\u9500\u552e\u62c5\u5f53]\u578b\u53f7\u9500\u91cf\u7edf\u8ba1',
                'verbose_name_plural': '[\u9500\u552e\u62c5\u5f53]\u578b\u53f7\u9500\u91cf\u7edf\u8ba1',
            },
        ),
        migrations.CreateModel(
            name='SuperSalesResponsibilityInfoModelsSaleStatisticInfo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('status', models.BooleanField(db_index=True, default=True, help_text='Status', verbose_name='status')),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='Create Time', verbose_name='created_at')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='Update Time', verbose_name='updated_at')),
                ('brand_id', models.CharField(blank=True, db_index=True, help_text='\u54c1\u724c\u552f\u4e00\u6807\u8bc6', max_length=32, null=True, verbose_name='brand_id')),
                ('sr_id', models.CharField(db_index=True, help_text='\u9500\u552e\u62c5\u5f53\u552f\u4e00\u6807\u8bc6', max_length=32, verbose_name='sr_id')),
                ('sr_name', models.CharField(blank=True, help_text='\u9500\u552e\u62c5\u5f53\u540d\u79f0', max_length=255, null=True, verbose_name='sr_name')),
                ('ymd', models.IntegerField(db_index=True, default=0, help_text='\u5e74\u6708\u65e5', verbose_name='ymd')),
                ('today_num', models.IntegerField(default=0, help_text='\u652f\u6570(\u4eca\u65e5)', verbose_name='today_num')),
                ('yesterday_num', models.IntegerField(default=0, help_text='\u652f\u6570(\u6628\u65e5)', verbose_name='yesterday_num')),
                ('current_month', models.IntegerField(default=0, help_text='\u652f\u6570(\u672c\u6708)', verbose_name='current_month')),
                ('last_month', models.IntegerField(default=0, help_text='\u652f\u6570(\u4e0a\u6708)', verbose_name='last_month')),
                ('position', models.IntegerField(default=1, help_text='\u6392\u5e8f', verbose_name='position')),
            ],
            options={
                'verbose_name': '[\u8d85\u7ea7\u9500\u552e\u62c5\u5f53]\u9500\u552e\u62c5\u5f53\u9500\u91cf\u7edf\u8ba1',
                'verbose_name_plural': '[\u8d85\u7ea7\u9500\u552e\u62c5\u5f53]\u9500\u552e\u62c5\u5f53\u9500\u91cf\u7edf\u8ba1',
            },
        ),
        migrations.AlterUniqueTogether(
            name='salesresponsibilityinfo',
            unique_together=set([('brand_id', 'sr_id')]),
        ),
    ]
