mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
feat(governance): unify durable event retention
This commit is contained in:
@@ -46,6 +46,7 @@ class AgentChat(Base):
|
||||
Index("ix_agentchat_session_user", "session_id", "user_id"),
|
||||
Index("ix_agentchat_user_updated", "user_id", "updated_at", "id"),
|
||||
Index("ix_agentchat_channel_updated", "channel", "updated_at", "id"),
|
||||
Index("ix_agentchat_updated_id", "updated_at", "id"),
|
||||
)
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -37,6 +37,7 @@ class AgentTaskRun(Base):
|
||||
__table_args__ = (
|
||||
Index("ix_agenttaskrun_run_id", "run_id", unique=True),
|
||||
Index("ix_agenttaskrun_task_started", "task_id", "started_at", "id"),
|
||||
Index("ix_agenttaskrun_status_started_id", "status", "started_at", "id"),
|
||||
)
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -102,6 +102,7 @@ class SubscribeHistory(Base):
|
||||
__table_args__ = (
|
||||
media_identity_constraint("subscribehistory"),
|
||||
Index('ix_subscribehistory_type_date', 'type', 'date'),
|
||||
Index('ix_subscribehistory_date_id', 'date', 'id'),
|
||||
Index('ix_subscribehistory_media_identity', 'media_source', 'media_id'),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user