export script

This commit is contained in:
2026-04-13 21:10:37 -03:00
parent 9ecc341da8
commit 236ab941a5
16 changed files with 2410 additions and 158 deletions

View File

@@ -8,6 +8,17 @@ from sqlalchemy.sql import func
class Base(DeclarativeBase):
pass
class TrayWebhook(Base):
__tablename__ = 'tray_webhook'
id = Column(Integer, primary_key=True, autoincrement=True)
#create_date: Mapped[datetime] = mapped_column(DateTime, onupdate=func.now(), server_default=func.now())
body = Column(String(255))
def __init__(self, body):
self.body = body
class ApiToken(Base):
__tablename__ = 'api_token'