# Generated by Django 2.1.7 on 2020-12-10 07:46

from django.conf import settings
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0087_salesdivision_category'),
    ]

    operations = [
        migrations.CreateModel(
            name='StaffSaldiv',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('group_ids', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), size=None, verbose_name='功能组')),
                ('saldiv_ids', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), blank=True, null=True, size=None, verbose_name='战区')),
                ('subsaldiv_ids', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), blank=True, null=True, size=None, verbose_name='分区')),
                ('agent_ids', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), blank=True, null=True, size=None, verbose_name='经销商')),
                ('tm', models.DateField(auto_now_add=True, verbose_name='创建时间')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='staffdiv_company', to='company.Company', verbose_name='公司名称')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='staffdiv_user', to=settings.AUTH_USER_MODEL, verbose_name='用户帐号')),
            ],
            options={
                'verbose_name': '营销管理人员区域划分',
                'verbose_name_plural': '营销管理人员区域划分',
            },
        ),
    ]
