# Generated by Django 5.2.14 on 2026-05-11 11:29

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


class Migration(migrations.Migration):

    dependencies = [
        ('journal', '0005_remove_netease_from_config'),
    ]

    operations = [
        migrations.CreateModel(
            name='MemoryPhoto',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image', models.ImageField(upload_to='memory_photos/')),
                ('sort_order', models.PositiveSmallIntegerField(default=0, help_text='数字越小越靠前（排在主图之后）。')),
                ('memory', models.ForeignKey(help_text='所属故事页', on_delete=django.db.models.deletion.CASCADE, related_name='photos', to='journal.memory')),
            ],
            options={
                'verbose_name': '附加照片',
                'verbose_name_plural': '附加照片',
                'ordering': ['sort_order', 'id'],
            },
        ),
    ]
