Commit 1f78041b authored by Dr.李's avatar Dr.李

added special treatment

parent 3bb9d66d
......@@ -1726,6 +1726,20 @@ class PortfolioSettings(Base):
model_version = Column(BigInteger, nullable=False)
class SpecialTreatment(Base):
__tablename__ = 'special_treatment'
__table_args__ = (
Index('special_treament_pk', 'trade_date', 'portfolio_name', 'code', 'treatment', unique=True),
)
trade_date = Column(DateTime, primary_key=True, nullable=False)
portfolio_name = Column(String(50), primary_key=True, nullable=False)
code = Column(BigInteger, primary_key=True, nullable=False)
treatment = Column(String(30), primary_key=True, nullable=False)
comment = Column(Text)
weight = Column(Float(53))
if __name__ == '__main__':
from sqlalchemy import create_engine
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment