# Generated by Django 6.0 on 2025-12-23 21:02

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("shangpin", "0003_alter_shangpinleixing_jieshao_and_more"),
    ]

    operations = [
        migrations.CreateModel(
            name="Huiyuan",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "huiyuan_id",
                    models.CharField(max_length=6, unique=True, verbose_name="会员ID"),
                ),
                ("jieshao", models.CharField(max_length=30, verbose_name="会员介绍")),
                (
                    "jiage",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=10,
                        verbose_name="会员价格",
                    ),
                ),
                (
                    "goumai_cishu",
                    models.PositiveIntegerField(default=0, verbose_name="购买次数"),
                ),
                (
                    "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": "huiyuan",
            },
        ),
        migrations.CreateModel(
            name="Huiyuangoumai",
            fields=[
                (
                    "id",
                    models.AutoField(
                        primary_key=True, serialize=False, verbose_name="购买记录ID"
                    ),
                ),
                (
                    "huiyuan_id",
                    models.CharField(
                        db_index=True, max_length=6, verbose_name="会员ID"
                    ),
                ),
                (
                    "yonghu_id",
                    models.CharField(
                        db_index=True, max_length=32, verbose_name="用户ID"
                    ),
                ),
                (
                    "huiyuan_zhuangtai",
                    models.PositiveIntegerField(default=1, verbose_name="会员状态"),
                ),
                ("daoqi_time", models.DateTimeField(verbose_name="会员到期时间")),
                (
                    "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": "huiyuangoumai",
            },
        ),
        migrations.AddField(
            model_name="shangpin",
            name="huiyuan_id",
            field=models.CharField(
                blank=True, max_length=6, null=True, verbose_name="会员ID"
            ),
        ),
        migrations.AddField(
            model_name="shangpin",
            name="yaoqiuleixing",
            field=models.PositiveIntegerField(
                blank=True, null=True, verbose_name="抢单要求类型"
            ),
        ),
        migrations.AddField(
            model_name="shangpin",
            name="yongjin",
            field=models.DecimalField(
                blank=True,
                decimal_places=2,
                max_digits=10,
                null=True,
                verbose_name="佣金要求",
            ),
        ),
    ]
