# 工单：被投诉对象 / 平台介入 / 协商中状态 / 俱乐部提现拦截开关
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('gongdan', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='gongdan',
            name='target_role',
            field=models.CharField(blank=True, db_index=True, default='', max_length=16, verbose_name='被投诉角色'),
        ),
        migrations.AddField(
            model_name='gongdan',
            name='target_user_id',
            field=models.CharField(blank=True, db_index=True, default='', max_length=32, verbose_name='被投诉人UID'),
        ),
        migrations.AddField(
            model_name='gongdan',
            name='platform_intervened',
            field=models.BooleanField(db_index=True, default=False, verbose_name='平台已介入'),
        ),
        migrations.AddField(
            model_name='gongdan',
            name='intervene_at',
            field=models.DateTimeField(blank=True, null=True, verbose_name='介入时间'),
        ),
        migrations.AddField(
            model_name='gongdan',
            name='intervene_by',
            field=models.CharField(blank=True, default='', max_length=32, verbose_name='介入操作人UID(仅存库)'),
        ),
        migrations.AddField(
            model_name='gongdan',
            name='intervene_reason',
            field=models.CharField(blank=True, default='', max_length=32, verbose_name='介入原因码'),
        ),
        migrations.AlterField(
            model_name='gongdan',
            name='leixing',
            field=models.IntegerField(
                choices=[
                    (1, '订单投诉'), (2, '充值投诉'), (3, '罚款投诉'),
                    (4, '管事投诉'), (5, '被骗投诉'), (6, '组长投诉'),
                ],
                db_index=True,
                verbose_name='投诉类型',
            ),
        ),
        migrations.AlterField(
            model_name='gongdan',
            name='zhuangtai',
            field=models.IntegerField(
                choices=[
                    (1, '处理中'), (2, '已处理'), (3, '不满意'),
                    (4, '已关闭'), (5, '协商中'),
                ],
                db_index=True,
                default=1,
                verbose_name='状态',
            ),
        ),
        migrations.CreateModel(
            name='ClubGongdanConfig',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('club_id', models.CharField(db_index=True, max_length=16, unique=True, verbose_name='俱乐部')),
                ('complaint_withdraw_block', models.BooleanField(default=False, verbose_name='投诉拦截提现')),
                ('CreateTime', models.DateTimeField(auto_now_add=True)),
                ('UpdateTime', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': '俱乐部工单配置',
                'db_table': 'club_gongdan_config',
            },
        ),
    ]
