Recovered state: integrated TrendSurferAgent, restored frontend/backend files, and cleaned up recovery scripts

This commit is contained in:
ajaysi
2026-02-08 13:56:57 +05:30
parent 1db10ccd0f
commit e404a86502
333 changed files with 42223 additions and 10875 deletions

View File

@@ -52,11 +52,10 @@ class OAuthTokenMonitoringTask(Base):
cascade="all, delete-orphan"
)
# Indexes for efficient queries
__table_args__ = (
Index('idx_user_platform', 'user_id', 'platform'),
Index('idx_next_check', 'next_check'),
Index('idx_status', 'status'),
Index('idx_oauth_token_tasks_user_platform', 'user_id', 'platform'),
Index('idx_oauth_token_tasks_next_check', 'next_check'),
Index('idx_oauth_token_tasks_status', 'status'),
)
def __repr__(self):
@@ -91,10 +90,9 @@ class OAuthTokenExecutionLog(Base):
# Relationship to task
task = relationship("OAuthTokenMonitoringTask", back_populates="execution_logs")
# Indexes for efficient queries
__table_args__ = (
Index('idx_task_execution_date', 'task_id', 'execution_date'),
Index('idx_status', 'status'),
Index('idx_oauth_token_logs_task_execution_date', 'task_id', 'execution_date'),
Index('idx_oauth_token_logs_status', 'status'),
)
def __repr__(self):