# Generated by Django 6.0.5 on 2026-08-06 09:11

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('wagtailcore', '0097_baselogentry_uuid_action_timestamp_indexes'),
        ('wagtailimages', '0027_image_description'),
    ]

    operations = [
        migrations.CreateModel(
            name='SimpleContentPage',
            fields=[
                ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.page')),
                ('seo_title_override', models.CharField(blank=True, help_text='留空则使用页面标题', max_length=70, verbose_name='SEO 标题')),
                ('seo_description_override', models.CharField(blank=True, max_length=160, verbose_name='SEO 描述')),
                ('canonical_url', models.URLField(blank=True, verbose_name='Canonical URL')),
                ('schema_json', models.JSONField(blank=True, default=dict, verbose_name='结构化数据 (JSON-LD)')),
                ('body', wagtail.fields.RichTextField(blank=True, verbose_name='正文内容')),
                ('og_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image', verbose_name='社交分享图')),
            ],
            options={
                'verbose_name': '通用内容页',
            },
            bases=('wagtailcore.page',),
        ),
    ]
