# Generated by Django 6.0 on 2025-12-20 23:54

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="Shangpin",
            fields=[
                (
                    "id",
                    models.AutoField(
                        primary_key=True, serialize=False, verbose_name="商品ID"
                    ),
                ),
                (
                    "jiage",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=10,
                        verbose_name="商品价格",
                    ),
                ),
                (
                    "kucun",
                    models.PositiveIntegerField(default=0, verbose_name="商品库存"),
                ),
                (
                    "leixing",
                    models.PositiveIntegerField(
                        blank=True, null=True, verbose_name="商品类型"
                    ),
                ),
                (
                    "zhuanqu",
                    models.PositiveIntegerField(
                        blank=True, null=True, verbose_name="商品专区"
                    ),
                ),
                (
                    "zhenshi_xiaoliang",
                    models.PositiveIntegerField(default=0, verbose_name="商品真实销量"),
                ),
                (
                    "duiwai_xiaoliang",
                    models.PositiveIntegerField(default=0, verbose_name="商品对外销量"),
                ),
                (
                    "jieshao",
                    models.TextField(blank=True, null=True, verbose_name="商品介绍"),
                ),
                (
                    "tupian_url",
                    models.URLField(blank=True, null=True, verbose_name="商品图片URL"),
                ),
                (
                    "create_time",
                    models.DateTimeField(auto_now_add=True, verbose_name="创建时间"),
                ),
                (
                    "update_time",
                    models.DateTimeField(auto_now=True, verbose_name="更改时间"),
                ),
            ],
            options={
                "verbose_name": "商品",
                "verbose_name_plural": "商品",
                "db_table": "shangpin",
                "indexes": [
                    models.Index(
                        fields=["leixing"], name="shangpin_leixing_d19864_idx"
                    ),
                    models.Index(
                        fields=["zhuanqu"], name="shangpin_zhuanqu_9fdc1b_idx"
                    ),
                ],
            },
        ),
    ]
