# Generated by Django 5.2.8 on 2025-11-29 15:34

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


class Migration(migrations.Migration):

    dependencies = [
        ('crm', '0008_teacher_remove_project_category_project_teacher_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='StudentHonor',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, verbose_name='荣誉标题')),
                ('image', models.URLField(default='https://images.unsplash.com/photo-1579548122080-c35fd6820ecb', verbose_name='证书图片URL')),
                ('date', models.DateField(verbose_name='获得日期')),
                ('description', models.TextField(blank=True, default='', verbose_name='荣誉描述')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='honors', to='crm.student', verbose_name='学员')),
            ],
            options={
                'verbose_name': '学员荣誉',
                'verbose_name_plural': '学员荣誉',
                'ordering': ['-date'],
            },
        ),
    ]
