Files
Django/jituan/migrations/0010_club_huiyuan_bundle_include.py
XingQue 37bc8f960a feat: 总会员(包含式)模型、迁移、抢单校验与后台配置
- Huiyuan.is_bundle + club_huiyuan_bundle_include 表
- 购买/到期逻辑不变,抢单时总会员覆盖子会员类型
- dshyhq/clumber 返回 is_bundle 与 included_huiyuan_ids

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 18:12:57 +08:00

27 lines
1.1 KiB
Python

from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jituan', '0009_club_huiyuan_recharge_ui'),
]
operations = [
migrations.CreateModel(
name='ClubHuiyuanBundleInclude',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('club_id', models.CharField(db_index=True, max_length=16)),
('bundle_huiyuan_id', models.CharField(db_index=True, max_length=6, verbose_name='总会员ID')),
('included_huiyuan_id', models.CharField(db_index=True, max_length=6, verbose_name='包含的子会员ID')),
('CreateTime', models.DateTimeField(auto_now_add=True)),
('UpdateTime', models.DateTimeField(auto_now=True)),
],
options={
'db_table': 'club_huiyuan_bundle_include',
'unique_together': {('club_id', 'bundle_huiyuan_id', 'included_huiyuan_id')},
},
),
]