from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('config', '0003_remove_shangjialianjie_shangjia_li_yonghu__9f2b25_idx_and_more'),
    ]

    operations = [
        migrations.AddField(
            model_name='dailyincomestat',
            name='club_id',
            field=models.CharField(db_index=True, default='xq', max_length=16, verbose_name='所属俱乐部'),
        ),
        migrations.AddField(
            model_name='dailypayoutstat',
            name='club_id',
            field=models.CharField(db_index=True, default='xq', max_length=16, verbose_name='所属俱乐部'),
        ),
        migrations.AlterField(
            model_name='dailyincomestat',
            name='date',
            field=models.DateField(db_index=True, verbose_name='统计日期'),
        ),
        migrations.AlterField(
            model_name='dailypayoutstat',
            name='date',
            field=models.DateField(db_index=True, verbose_name='统计日期'),
        ),
        migrations.AddIndex(
            model_name='dailyincomestat',
            index=models.Index(fields=['club_id', 'date'], name='idx_income_club_date'),
        ),
        migrations.AddIndex(
            model_name='dailypayoutstat',
            index=models.Index(fields=['club_id', 'date'], name='idx_payout_club_date'),
        ),
        migrations.AddConstraint(
            model_name='dailyincomestat',
            constraint=models.UniqueConstraint(fields=('date', 'club_id'), name='uniq_daily_income_club_date'),
        ),
        migrations.AddConstraint(
            model_name='dailypayoutstat',
            constraint=models.UniqueConstraint(fields=('date', 'club_id'), name='uniq_daily_payout_club_date'),
        ),
    ]
