# Generated by Django 2.1.7 on 2020-05-15 11:15

import company.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0023_auto_20200505_1507'),
    ]

    operations = [
        migrations.CreateModel(
            name='TerminalRegister',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100, verbose_name='终端店名称')),
                ('contacts', models.CharField(max_length=50, verbose_name='联系人')),
                ('cell_phone', models.CharField(max_length=20, verbose_name='手机号码')),
                ('address', models.CharField(max_length=100, verbose_name='详细地址')),
                ('wx_open_id', models.CharField(max_length=50, verbose_name='微信OpenID')),
                ('picture', models.ImageField(upload_to=company.models.company_upload_banner, verbose_name='店面门头照')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='申请时间')),
                ('tm_aprv', models.DateTimeField(blank=True, null=True, verbose_name='审核通过时间')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('ancestor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='terminal_ancestor', to='company.Company', verbose_name='公司族系')),
                ('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='terminal_company', to='company.Company', verbose_name='上级公司名称')),
                ('user_aprv', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='who_aprv', to=settings.AUTH_USER_MODEL, verbose_name='审核人')),
            ],
            options={
                'verbose_name': '终端店注册申请记录',
                'verbose_name_plural': '终端店注册申请记录',
            },
        ),
    ]
