Commit 31252d27 authored by Dr.李's avatar Dr.李

added outright

parent b366cfaa
...@@ -1977,6 +1977,18 @@ class Gogoal(Base): ...@@ -1977,6 +1977,18 @@ class Gogoal(Base):
tcap = Column(Float(53)) tcap = Column(Float(53))
class Outright(Base):
__tablename__ = 'outright'
__table_args__ = (
Index('outright_trade_date_code_portfolio_name_uindex', 'trade_date', 'code', 'portfolio_name', unique=True),
)
trade_date = Column(DateTime, primary_key=True, nullable=False)
code = Column(Integer, primary_key=True, nullable=False)
portfolio_name = Column(String(50), primary_key=True, nullable=False)
volume = Column(Integer, nullable=False)
if __name__ == '__main__': if __name__ == '__main__':
from sqlalchemy import create_engine 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