# Generated by Django 4.2.26 on 2025-11-29 16:11

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


class Migration(migrations.Migration):

    dependencies = [
        ('crm', '0009_studenthonor'),
    ]

    operations = [
        migrations.CreateModel(
            name='StudentShowcase',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, verbose_name='标题')),
                ('cover_image', models.URLField(verbose_name='封面图片URL')),
                ('video_url', models.URLField(blank=True, null=True, verbose_name='视频链接URL')),
                ('description', models.TextField(blank=True, default='', verbose_name='描述')),
                ('sort_order', models.IntegerField(default=0, verbose_name='排序')),
                ('is_active', models.BooleanField(default=True, verbose_name='是否启用')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('student', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='showcases', to='crm.student', verbose_name='关联学员')),
            ],
            options={
                'verbose_name': '学员风采',
                'verbose_name_plural': '学员风采',
                'ordering': ['sort_order', '-created_at'],
            },
        ),
    ]
