feat: V1 - DAG编排/告警系统/Agent循环/知识库RAG/Webhook + 审核管理富上下文修复

This commit is contained in:
2026-08-13 00:46:22 +08:00
parent 073cda80e8
commit bc6d852ee7
+15
View File
@@ -0,0 +1,15 @@
"""Webhook config model."""
from sqlalchemy import Column, String, Integer, Text, Boolean, ForeignKey
from app.models.base import Base, TimestampMixin, TenantMixin
class WebhookConfig(Base, TimestampMixin, TenantMixin):
"""Webhook subscription for external integrations."""
__tablename__ = "webhook_configs"
id = Column(Integer, primary_key=True, autoincrement=True)
project_id = Column(Integer, ForeignKey("projects.id"), nullable=True)
url = Column(String(500), nullable=False)
events = Column(Text, default="[]") # JSON: ["task_completed","review_pending","budget_alert"]
secret = Column(String(200), nullable=True)
is_active = Column(Boolean, default=True)