# Generated by Django 6.0 on 2025-12-21 18:48

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("shangpin", "0001_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="ShangpinLeixing",
            fields=[
                (
                    "id",
                    models.AutoField(
                        primary_key=True, serialize=False, verbose_name="类型ID"
                    ),
                ),
                (
                    "jieshao",
                    models.CharField(
                        max_length=45, unique=True, verbose_name="类型介绍"
                    ),
                ),
                (
                    "tupian_url",
                    models.CharField(
                        blank=True,
                        max_length=500,
                        null=True,
                        verbose_name="类型图片URL",
                    ),
                ),
            ],
            options={
                "verbose_name": "商品类型",
                "verbose_name_plural": "商品类型",
                "db_table": "shangpin_leixing",
            },
        ),
        migrations.CreateModel(
            name="ShangpinZhuanqu",
            fields=[
                (
                    "id",
                    models.AutoField(
                        primary_key=True, serialize=False, verbose_name="专区ID"
                    ),
                ),
                (
                    "mingzi",
                    models.CharField(
                        max_length=45, unique=True, verbose_name="专区名称"
                    ),
                ),
                ("leixing_id", models.PositiveIntegerField(verbose_name="类型ID")),
            ],
            options={
                "verbose_name": "商品专区",
                "verbose_name_plural": "商品专区",
                "db_table": "shangpin_zhuanqu",
            },
        ),
        migrations.RemoveIndex(
            model_name="shangpin",
            name="shangpin_leixing_d19864_idx",
        ),
        migrations.RemoveIndex(
            model_name="shangpin",
            name="shangpin_zhuanqu_9fdc1b_idx",
        ),
        migrations.AddField(
            model_name="shangpin",
            name="biaoqian",
            field=models.CharField(
                blank=True, max_length=45, null=True, verbose_name="商品标题"
            ),
        ),
        migrations.AddField(
            model_name="shangpin",
            name="guize_tupian",
            field=models.CharField(
                blank=True, max_length=500, null=True, verbose_name="规则图片URL"
            ),
        ),
        migrations.AddField(
            model_name="shangpin",
            name="leixing_id",
            field=models.PositiveIntegerField(
                blank=True, null=True, verbose_name="商品类型ID"
            ),
        ),
        migrations.AddField(
            model_name="shangpin",
            name="xiadan_xuzhi",
            field=models.TextField(blank=True, null=True, verbose_name="下单须知"),
        ),
        migrations.AddField(
            model_name="shangpin",
            name="zhuanqu_id",
            field=models.PositiveIntegerField(
                blank=True, null=True, verbose_name="商品专区ID"
            ),
        ),
        migrations.AlterField(
            model_name="shangpin",
            name="tupian_url",
            field=models.CharField(
                blank=True, max_length=500, null=True, verbose_name="商品图片URL"
            ),
        ),
        migrations.RemoveField(
            model_name="shangpin",
            name="leixing",
        ),
        migrations.RemoveField(
            model_name="shangpin",
            name="zhuanqu",
        ),
    ]
