forked from kodorvan/stcs
Added USER DEALS
This commit is contained in:
@@ -140,3 +140,15 @@ async def async_main():
|
||||
if not result.first():
|
||||
logger.info("Заполение таблицы триггеров")
|
||||
await conn.execute(Trigger.__table__.insert().values(trigger=trigger))
|
||||
|
||||
|
||||
class USER_DEALS(Base):
|
||||
__tablename__ = 'user_deals'
|
||||
|
||||
id: Mapped[int] = mapped_column(primary_key=True)
|
||||
|
||||
tg_id = mapped_column(ForeignKey("user_telegram_id.tg_id"))
|
||||
|
||||
symbol = mapped_column(String(18), default='PENGUUSDT')
|
||||
open_price = mapped_column(Integer(), default=1)
|
||||
side = mapped_column(String(10), nullable=False)
|
Reference in New Issue
Block a user