feat: 总会员(包含式)模型、迁移、抢单校验与后台配置
- Huiyuan.is_bundle + club_huiyuan_bundle_include 表 - 购买/到期逻辑不变,抢单时总会员覆盖子会员类型 - dshyhq/clumber 返回 is_bundle 与 included_huiyuan_ids Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -127,6 +127,19 @@ class ClubHuiyuanPrice(QModel):
|
||||
unique_together = [['club_id', 'huiyuan_id']]
|
||||
|
||||
|
||||
class ClubHuiyuanBundleInclude(QModel):
|
||||
"""俱乐部总会员包含的子会员类型(仅 is_bundle 会员使用)。"""
|
||||
club_id = models.CharField(max_length=16, db_index=True)
|
||||
bundle_huiyuan_id = models.CharField(max_length=6, db_index=True, verbose_name='总会员ID')
|
||||
included_huiyuan_id = models.CharField(max_length=6, db_index=True, verbose_name='包含的子会员ID')
|
||||
CreateTime = models.DateTimeField(auto_now_add=True)
|
||||
UpdateTime = models.DateTimeField(auto_now=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'club_huiyuan_bundle_include'
|
||||
unique_together = [['club_id', 'bundle_huiyuan_id', 'included_huiyuan_id']]
|
||||
|
||||
|
||||
class ClubShangpinLeixingConfig(QModel):
|
||||
"""各俱乐部小程序商品类型上架与图标(全局 ShangpinLeixing 由集团定义)。"""
|
||||
club_id = models.CharField(max_length=16, db_index=True)
|
||||
|
||||
Reference in New Issue
Block a user