# Generated by Django 5.1.5 on 2025-05-15 03:09

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


class Migration(migrations.Migration):

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

    operations = [
        migrations.AlterModelOptions(
            name='platformaccount',
            options={'ordering': ['-created_at'], 'verbose_name': '平台账号', 'verbose_name_plural': '平台账号'},
        ),
        migrations.AlterUniqueTogether(
            name='platformaccount',
            unique_together=set(),
        ),
        migrations.AddField(
            model_name='platformaccount',
            name='name',
            field=models.CharField(blank=True, default='', max_length=100, verbose_name='账户名称'),
        ),
        migrations.AlterField(
            model_name='platformaccount',
            name='operator',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='platform_accounts', to='operation.operatoraccount', verbose_name='运营账号'),
        ),
        migrations.AlterField(
            model_name='platformaccount',
            name='platform_name',
            field=models.CharField(choices=[('youtube', 'YouTube'), ('tiktok', 'TikTok'), ('bilibili', 'Bilibili'), ('facebook', 'Facebook'), ('instagram', 'Instagram'), ('twitter', 'Twitter'), ('other', '其他平台')], max_length=20, verbose_name='平台名称'),
        ),
        migrations.AlterField(
            model_name='platformaccount',
            name='profile_image',
            field=models.URLField(blank=True, null=True, verbose_name='头像URL'),
        ),
        migrations.AlterField(
            model_name='platformaccount',
            name='tags',
            field=models.CharField(blank=True, help_text='逗号分隔的标签列表', max_length=255, null=True, verbose_name='标签'),
        ),
        migrations.AddIndex(
            model_name='platformaccount',
            index=models.Index(fields=['platform_name'], name='operation_p_platfor_6e8678_idx'),
        ),
        migrations.AddIndex(
            model_name='platformaccount',
            index=models.Index(fields=['account_id'], name='operation_p_account_bdceaf_idx'),
        ),
        migrations.AddIndex(
            model_name='platformaccount',
            index=models.Index(fields=['status'], name='operation_p_status_167573_idx'),
        ),
    ]
