# Generated by Django 2.1.7 on 2020-12-21 09:51

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('company', '0100_auto_20201219_1322'),
        ('sales', '0101_promotioncode_items'),
    ]

    operations = [
        migrations.CreateModel(
            name='RebatePayee',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tm', models.DateTimeField(default=django.utils.timezone.now, verbose_name='生成时间')),
                ('agent_confirmed_user_id', models.IntegerField(blank=True, null=True, verbose_name='经销商确认人')),
                ('agent_confirmed_time', models.DateTimeField(blank=True, null=True, verbose_name='经销商确认时间')),
                ('company_confirmed_user_id', models.IntegerField(blank=True, null=True, verbose_name='公司确认人')),
                ('company_confirmed_time', models.DateTimeField(blank=True, null=True, verbose_name='公司确认时间')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('agent', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='rebateuseraccount_agent', to='company.Company', verbose_name='收款经销商')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rebateueraccount_company', to='company.Company', verbose_name='所属公司')),
                ('payee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='rebateueraccount_user', to=settings.AUTH_USER_MODEL, verbose_name='收款人')),
            ],
            options={
                'verbose_name': '经销商返利微信收款人',
                'verbose_name_plural': '经销商返利微信收人',
            },
        ),
    ]
