Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Base = declarative_base()
- class Balance(Base):
- account_id = Column(Integer, index=True),
- date = Column(Integer),
- balance = Column(Float),
- __tablename__ = 'balances'
- __table_args__ = (
- UniqueConstraint(account_id, date, name='balances_entry'),
- )
Advertisement
Add Comment
Please, Sign In to add comment