update
This commit is contained in:
+15
-1
@@ -121,12 +121,26 @@ class ScoringResult(BaseModel):
|
||||
primary_key = CompositeKey('stock_code', 'trade_date')
|
||||
|
||||
|
||||
# ============================================================
|
||||
# 8. PendingPoolAction — 待执行股票池操作(阶段一标记,阶段二执行)
|
||||
# ============================================================
|
||||
class PendingPoolAction(BaseModel):
|
||||
"""pending_pool_actions 表 — T日标记的操作,待 T+1 执行"""
|
||||
action_date = DateField() # T日日期(标记日期)
|
||||
action_type = CharField(max_length=20) # 'eliminate' | 'liquidate'
|
||||
stock_code = CharField(max_length=6) # 股票代码
|
||||
reason = TextField(null=True) # 淘汰原因描述
|
||||
|
||||
class Meta:
|
||||
primary_key = CompositeKey('action_date', 'action_type', 'stock_code')
|
||||
|
||||
|
||||
# ============================================================
|
||||
# 建表
|
||||
# ============================================================
|
||||
ALL_SCORING_TABLES = [
|
||||
KlineStock, StockInfo, IndustryMapping, KlineIndex,
|
||||
MarketRegimeDaily, SectorFeaturesDaily, ScoringResult,
|
||||
MarketRegimeDaily, SectorFeaturesDaily, ScoringResult, PendingPoolAction,
|
||||
]
|
||||
|
||||
db.create_tables(ALL_SCORING_TABLES)
|
||||
|
||||
Reference in New Issue
Block a user