Commit 0ef22cb4 authored by Dr.李's avatar Dr.李

update models

parent 95b6cbdf
...@@ -593,6 +593,17 @@ class DailyPortfolios(Base): ...@@ -593,6 +593,17 @@ class DailyPortfolios(Base):
factor = Column(JSONB) factor = Column(JSONB)
class DailyPortfoliosSchedule(Base):
__tablename__ = 'daily_portfolios_schedule'
__table_args__ = (
Index('daily_portfolios_schedule_trade_date_portfolio_name_uindex', 'trade_date', 'portfolio_name', unique=True),
)
trade_date = Column(DateTime, primary_key=True, nullable=False)
portfolio_name = Column(String(50), primary_key=True, nullable=False)
class DailyReturn(Base): class DailyReturn(Base):
__tablename__ = 'daily_return' __tablename__ = 'daily_return'
__table_args__ = ( __table_args__ = (
......
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