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


class Migration(migrations.Migration):

    dependencies = [
        ('users', '0005_dashou_zengsong_huiyuan'),
    ]

    operations = [
        migrations.CreateModel(
            name='YonghuCYaoqing',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('yaoqingma', models.CharField(blank=True, db_index=True, max_length=20, null=True, verbose_name='邀请码')),
                ('invite_qrcode_url', models.CharField(blank=True, max_length=500, null=True, verbose_name='邀请小程序码URL')),
                ('yaogingshuliang', models.IntegerField(default=0, verbose_name='邀请人数')),
                ('yaoqingren', models.CharField(blank=True, db_index=True, max_length=7, null=True, verbose_name='邀请人UserUID')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('user', models.OneToOneField(db_column='UserUUID', on_delete=django.db.models.deletion.CASCADE, related_name='CYaoqingProfile', to='users.user', verbose_name='关联用户')),
            ],
            options={
                'verbose_name': '点单端用户邀请',
                'verbose_name_plural': '点单端用户邀请',
                'db_table': 'yonghu_c_yaoqing',
            },
        ),
        migrations.AddIndex(
            model_name='yonghucyaoqing',
            index=models.Index(fields=['user'], name='yonghu_c_ya_user_id_idx'),
        ),
        migrations.AddIndex(
            model_name='yonghucyaoqing',
            index=models.Index(fields=['yaoqingma'], name='yonghu_c_ya_yaoqing_idx'),
        ),
        migrations.AddIndex(
            model_name='yonghucyaoqing',
            index=models.Index(fields=['yaoqingren'], name='yonghu_c_ya_yaoqingr_idx'),
        ),
    ]
