- Huiyuan.is_bundle + club_huiyuan_bundle_include 表 - 购买/到期逻辑不变,抢单时总会员覆盖子会员类型 - dshyhq/clumber 返回 is_bundle 与 included_huiyuan_ids Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
1.1 KiB
Python
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')},
|
|
},
|
|
),
|
|
]
|