# Generated by Django 6.0.1 on 2026-02-02 06:04

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


class Migration(migrations.Migration):

    dependencies = [
        ('shop', '0006_arservice_esp32config_detail_image_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='ProductFeature',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=50, verbose_name='特性标题')),
                ('description', models.TextField(verbose_name='特性描述')),
                ('icon_name', models.CharField(blank=True, help_text='例如: SafetyCertificate, Eye, Thunderbolt', max_length=50, null=True, verbose_name='Antd图标名称')),
                ('icon_image', models.ImageField(blank=True, null=True, upload_to='products/features/', verbose_name='特性图标 (上传)')),
                ('icon_url', models.URLField(blank=True, null=True, verbose_name='特性图标 (URL)')),
                ('order', models.IntegerField(default=0, help_text='数字越小越靠前', verbose_name='排序权重')),
                ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='features', to='shop.esp32config', verbose_name='所属产品')),
            ],
            options={
                'verbose_name': '产品特性',
                'verbose_name_plural': '产品特性',
                'ordering': ['order'],
            },
        ),
    ]
