# Generated by Django 4.2.27 on 2026-06-17 21:18

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Czjilu',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dingdan_id', models.CharField(db_index=True, max_length=32, unique=True, verbose_name='订单ID')),
                ('huiyuan_id', models.CharField(blank=True, max_length=6, null=True, verbose_name='会员ID')),
                ('zhuangtai', models.IntegerField(blank=True, null=True, verbose_name='订单状态')),
                ('yonghuid', models.CharField(db_index=True, max_length=7, verbose_name='用户ID')),
                ('jine', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='订单金额')),
                ('leixing', models.IntegerField(blank=True, null=True, verbose_name='充值类型，1:会员，2:押金,3:积分,4:商家')),
                ('shuoming', models.CharField(blank=True, max_length=100, null=True, verbose_name='订单说明')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '充值记录订单',
                'verbose_name_plural': '充值记录订单',
                'db_table': 'czjilu',
            },
        ),
        migrations.CreateModel(
            name='DuociFenhong',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('huiyuan', models.CharField(max_length=10, verbose_name='会员ID')),
                ('yonghuid', models.CharField(db_index=True, max_length=7, verbose_name='管事ID')),
                ('cishu', models.PositiveIntegerField(verbose_name='分红次数')),
                ('guanshi_fenhong', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='管事分红金额')),
                ('zuzhang_fenhong', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='组长分红金额')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '多次分红配置',
                'verbose_name_plural': '多次分红配置',
                'db_table': 'duoci_fenhong',
            },
        ),
        migrations.CreateModel(
            name='Gsfenhong',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dingdan_id', models.CharField(max_length=32, unique=True, verbose_name='订单ID')),
                ('guanshi', models.CharField(db_index=True, max_length=7, verbose_name='管事ID')),
                ('dashouid', models.CharField(db_index=True, max_length=7, verbose_name='打手ID')),
                ('shuoming', models.CharField(blank=True, max_length=100, null=True, verbose_name='订单说明')),
                ('fenhong', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='订单分红金额')),
                ('avatar', models.CharField(blank=True, max_length=500, null=True, verbose_name='打手头像')),
                ('nicheng', models.CharField(max_length=50, null=True, verbose_name='打手昵称')),
                ('zuzhang_id', models.CharField(blank=True, db_index=True, max_length=7, null=True, verbose_name='组长ID')),
                ('zuzhang_fenhong', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='组长分红金额')),
                ('fenhong_leixing', models.PositiveSmallIntegerField(choices=[(1, '会员分红'), (2, '押金分红'), (3, '商家订单分红')], default=1, verbose_name='分红类型')),
                ('huiyuan_id', models.CharField(blank=True, max_length=6, null=True, verbose_name='会员ID')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '管事分红记录',
                'verbose_name_plural': '管事分红记录',
                'db_table': 'gsfenhong',
            },
        ),
        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='会员介绍')),
                ('jtjieshao', models.TextField(blank=True, null=True, verbose_name='会员规则介绍')),
                ('jiage', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='会员价格')),
                ('guanshifc', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='管事分成')),
                ('zuzhangfc', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='组长分成')),
                ('goumai_cishu', models.PositiveIntegerField(default=0, verbose_name='购买次数')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', 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='会员状态')),
                ('jieshao', models.CharField(max_length=30, null=True, verbose_name='会员介绍')),
                ('daoqi_time', models.DateTimeField(verbose_name='会员到期时间')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '用户购买会员',
                'verbose_name_plural': '用户购买会员',
                'db_table': 'huiyuangoumai',
            },
        ),
        migrations.CreateModel(
            name='Shangpin',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='商品ID')),
                ('biaoqian', models.CharField(blank=True, max_length=45, null=True, verbose_name='商品标题')),
                ('jiage', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='商品价格')),
                ('kucun', models.PositiveIntegerField(default=0, verbose_name='商品库存')),
                ('leixing_id', models.PositiveIntegerField(blank=True, null=True, verbose_name='商品类型ID')),
                ('zhuanqu_id', models.PositiveIntegerField(blank=True, null=True, verbose_name='商品专区ID')),
                ('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='商品介绍')),
                ('xiadan_xuzhi', models.TextField(blank=True, null=True, verbose_name='下单须知')),
                ('guize_tupian', models.CharField(blank=True, max_length=500, null=True, verbose_name='规则图片URL')),
                ('yaoqiuleixing', models.PositiveIntegerField(blank=True, null=True, verbose_name='抢单要求类型')),
                ('huiyuan_id', models.CharField(blank=True, max_length=6, null=True, verbose_name='会员ID')),
                ('yongjin', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='佣金要求')),
                ('kaioi_ewai_dashou_fencheng', models.BooleanField(default=False, verbose_name='是否开启打手额外分成')),
                ('ewai_dashou_fencheng', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='打手额外分成金额')),
                ('tupian_url', models.CharField(blank=True, max_length=500, null=True, verbose_name='商品图片URL')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更改时间')),
                ('paixu', models.IntegerField(default=0, verbose_name='排序权重')),
                ('shenhezhuangtai', models.IntegerField(default=1, help_text='1=正常, 2=审核专用', verbose_name='审核状态')),
                ('shangjia_zhuangtai', models.BooleanField(default=True, verbose_name='是否上架')),
                ('fengjin_zhuangtai', models.BooleanField(default=True, verbose_name='是否封禁')),
                ('shenhe_zhuangtai', models.BooleanField(default=False, help_text='True=审核通过，False=未审核', verbose_name='平台审核状态')),
            ],
            options={
                'verbose_name': '商品',
                'verbose_name_plural': '商品',
                'db_table': 'shangpin',
            },
        ),
        migrations.CreateModel(
            name='ShangpinLeixing',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='类型ID')),
                ('yaoqiuleixing', models.PositiveIntegerField(blank=True, null=True, verbose_name='抢单要求类型')),
                ('huiyuan_id', models.CharField(blank=True, max_length=6, null=True, verbose_name='会员ID')),
                ('yongjin', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='佣金要求')),
                ('jieshao', models.CharField(blank=True, max_length=45, null=True, verbose_name='类型介绍')),
                ('tupian_url', models.CharField(blank=True, max_length=500, null=True, verbose_name='类型图片URL')),
                ('paixu', models.IntegerField(default=0, verbose_name='排序权重')),
                ('shenhezhuangtai', models.IntegerField(default=1, help_text='1=正常, 2=审核专用', verbose_name='审核状态')),
            ],
            options={
                'verbose_name': '商品类型',
                'verbose_name_plural': '商品类型',
                'db_table': 'shangpin_leixing',
            },
        ),
        migrations.CreateModel(
            name='ShangpinMeiriTongji',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('riqi', models.DateField(db_index=True, verbose_name='统计日期')),
                ('nian', models.PositiveSmallIntegerField(verbose_name='年份')),
                ('yue', models.PositiveSmallIntegerField(verbose_name='月份')),
                ('ri', models.PositiveSmallIntegerField(verbose_name='日')),
                ('diandan_zongliang', models.PositiveIntegerField(default=0, verbose_name='点单总量')),
                ('diandan_zonge', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='点单总额')),
                ('chengjiao_zongliang', models.PositiveIntegerField(default=0, verbose_name='成交总量')),
                ('chengjiao_zonge', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='成交总额')),
                ('tuikuan_zongliang', models.PositiveIntegerField(default=0, verbose_name='退款总量')),
                ('tuikuan_zonge', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='退款总额')),
                ('pingtai_shouyi', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='平台收益')),
                ('dianpu_zongshouyi', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='店铺总收益')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '商品每日统计',
                'verbose_name_plural': '商品每日统计',
                'db_table': 'shangpin_meiri_tongji',
            },
        ),
        migrations.CreateModel(
            name='ShangpinZhuanqu',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='专区ID')),
                ('mingzi', models.CharField(blank=True, max_length=45, null=True, verbose_name='专区名称')),
                ('leixing_id', models.PositiveIntegerField(verbose_name='类型ID')),
                ('paixu', models.IntegerField(default=0, verbose_name='排序权重')),
                ('shenhezhuangtai', models.IntegerField(default=1, help_text='1=正常, 2=审核专用', verbose_name='审核状态')),
                ('shangjia_zhuangtai', models.BooleanField(default=True, verbose_name='是否上架')),
                ('fengjin_zhuangtai', models.BooleanField(default=True, verbose_name='是否封禁')),
            ],
            options={
                'verbose_name': '商品专区',
                'verbose_name_plural': '商品专区',
                'db_table': 'shangpin_zhuanqu',
            },
        ),
    ]
