# Generated by Django 3.1.4 on 2021-03-31 15:31

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0195_auto_20210330_1526'),
        ('sales', '0178_auto_20210331_0958'),
    ]

    operations = [
        migrations.CreateModel(
            name='Consumer_Appeal',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label_code', models.CharField(blank=True, max_length=30, null=True, verbose_name='标签序号')),
                ('photo', models.CharField(blank=True, max_length=200, null=True, verbose_name='图片')),
                ('phone', models.CharField(blank=True, max_length=20, null=True, verbose_name='手机号码')),
                ('name', models.CharField(blank=True, max_length=30, null=True, verbose_name='消费者姓名')),
                ('message', models.CharField(blank=True, max_length=500, null=True, verbose_name='消费者留言')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='提交时间')),
                ('status', models.SmallIntegerField(choices=[('0', '审核中'), ('1', '通过'), ('2', '驳回')], default=0, verbose_name='状态')),
                ('stop_tm', models.DateTimeField(blank=True, null=True, verbose_name='结束日期')),
                ('reason', models.CharField(blank=True, max_length=500, null=True, verbose_name='原因')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='公司')),
                ('consumer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sales.consumeraccount', verbose_name='用户')),
            ],
            options={
                'verbose_name': '消费者申诉记录',
                'verbose_name_plural': '消费者申诉记录',
            },
        ),
    ]
