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


class Migration(migrations.Migration):

    dependencies = [
        ('config', '0009_gonggao_copy_pages'),
    ]

    operations = [
        migrations.CreateModel(
            name='ClubMiniappIcon',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('club_id', models.CharField(db_index=True, default='xq', max_length=16, verbose_name='俱乐部ID')),
                ('icon_key', models.CharField(db_index=True, max_length=64, verbose_name='图标键')),
                ('label', models.CharField(blank=True, default='', max_length=100, verbose_name='展示名称')),
                ('image_path', models.CharField(blank=True, default='', max_length=500, verbose_name='图片相对路径')),
                ('description', models.CharField(blank=True, default='', max_length=300, verbose_name='说明')),
                ('is_active', models.BooleanField(default=True, verbose_name='是否启用')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '小程序图标',
                'verbose_name_plural': '小程序图标',
                'db_table': 'club_miniapp_icon',
                'ordering': ['icon_key'],
                'unique_together': {('club_id', 'icon_key')},
            },
        ),
        migrations.CreateModel(
            name='ClubPindao',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('club_id', models.CharField(default='xq', max_length=16, unique=True, verbose_name='俱乐部ID')),
                ('channel_no', models.CharField(blank=True, default='', max_length=100, verbose_name='频道号')),
                ('title', models.CharField(blank=True, default='频道', max_length=100, verbose_name='标题')),
                ('is_active', models.BooleanField(default=True, verbose_name='是否启用')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '俱乐部频道',
                'verbose_name_plural': '俱乐部频道',
                'db_table': 'club_pindao',
            },
        ),
        migrations.CreateModel(
            name='ClubPindaoImage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('club_id', models.CharField(db_index=True, default='xq', max_length=16, verbose_name='俱乐部ID')),
                ('image_path', models.CharField(max_length=500, verbose_name='图片相对路径')),
                ('sort_order', models.PositiveIntegerField(default=0, verbose_name='排序')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('pindao', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='images', to='config.clubpindao')),
            ],
            options={
                'verbose_name': '频道图片',
                'verbose_name_plural': '频道图片',
                'db_table': 'club_pindao_image',
                'ordering': ['sort_order', 'id'],
            },
        ),
    ]
