2026-05-10 11:14:55 -05:00
|
|
|
"""Model exports for SQLAlchemy/SQLModel metadata discovery."""
|
|
|
|
|
|
|
|
|
|
from app.models.activity_events import ActivityEvent
|
|
|
|
|
from app.models.agents import Agent
|
feat: Phase 2 monitoring models — 7 new tables with CASCADE and composite indexes
- Add monitoring.py: CostSnapshot, CronJobStatus, SessionEvent, SubAgentRun, SystemHealthMetric
- Add alert_rules.py: AlertRule, AlertEvent
- Register all 7 models in __init__.py
- Add Alembic migration 7a8b9c0d1e2f for 7 new monitoring tables
- Add Alembic migration 8f9a0b1c2d3e for CASCADE FK rules, composite indexes, acknowledged_by FK
- Update env.py for transaction-per-migration to avoid failure chaining
- Security: ondelete CASCADE on all org/gateway FKs, SET NULL on acknowledged_by
- Performance: composite indexes on (org_id, created_at) and (org_id, gateway_id) for all monitoring tables
2026-05-10 19:40:25 -05:00
|
|
|
from app.models.alert_rules import AlertEvent, AlertRule
|
2026-05-10 11:14:55 -05:00
|
|
|
from app.models.approval_task_links import ApprovalTaskLink
|
|
|
|
|
from app.models.approvals import Approval
|
|
|
|
|
from app.models.board_group_memory import BoardGroupMemory
|
|
|
|
|
from app.models.board_groups import BoardGroup
|
|
|
|
|
from app.models.board_memory import BoardMemory
|
|
|
|
|
from app.models.board_onboarding import BoardOnboardingSession
|
|
|
|
|
from app.models.board_webhook_payloads import BoardWebhookPayload
|
|
|
|
|
from app.models.board_webhooks import BoardWebhook
|
|
|
|
|
from app.models.boards import Board
|
|
|
|
|
from app.models.gateways import Gateway
|
feat: Phase 2 monitoring models — 7 new tables with CASCADE and composite indexes
- Add monitoring.py: CostSnapshot, CronJobStatus, SessionEvent, SubAgentRun, SystemHealthMetric
- Add alert_rules.py: AlertRule, AlertEvent
- Register all 7 models in __init__.py
- Add Alembic migration 7a8b9c0d1e2f for 7 new monitoring tables
- Add Alembic migration 8f9a0b1c2d3e for CASCADE FK rules, composite indexes, acknowledged_by FK
- Update env.py for transaction-per-migration to avoid failure chaining
- Security: ondelete CASCADE on all org/gateway FKs, SET NULL on acknowledged_by
- Performance: composite indexes on (org_id, created_at) and (org_id, gateway_id) for all monitoring tables
2026-05-10 19:40:25 -05:00
|
|
|
from app.models.monitoring import CostSnapshot, CronJobStatus, SessionEvent, SubAgentRun, SystemHealthMetric
|
2026-05-10 11:14:55 -05:00
|
|
|
from app.models.organization_board_access import OrganizationBoardAccess
|
|
|
|
|
from app.models.organization_invite_board_access import OrganizationInviteBoardAccess
|
|
|
|
|
from app.models.organization_invites import OrganizationInvite
|
|
|
|
|
from app.models.organization_members import OrganizationMember
|
|
|
|
|
from app.models.organizations import Organization
|
|
|
|
|
from app.models.skills import GatewayInstalledSkill, MarketplaceSkill, SkillPack
|
|
|
|
|
from app.models.tag_assignments import TagAssignment
|
|
|
|
|
from app.models.tags import Tag
|
|
|
|
|
from app.models.task_custom_fields import (
|
|
|
|
|
BoardTaskCustomField,
|
|
|
|
|
TaskCustomFieldDefinition,
|
|
|
|
|
TaskCustomFieldValue,
|
|
|
|
|
)
|
|
|
|
|
from app.models.task_dependencies import TaskDependency
|
|
|
|
|
from app.models.task_fingerprints import TaskFingerprint
|
|
|
|
|
from app.models.tasks import Task
|
|
|
|
|
from app.models.users import User
|
|
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
|
"ActivityEvent",
|
|
|
|
|
"Agent",
|
feat: Phase 2 monitoring models — 7 new tables with CASCADE and composite indexes
- Add monitoring.py: CostSnapshot, CronJobStatus, SessionEvent, SubAgentRun, SystemHealthMetric
- Add alert_rules.py: AlertRule, AlertEvent
- Register all 7 models in __init__.py
- Add Alembic migration 7a8b9c0d1e2f for 7 new monitoring tables
- Add Alembic migration 8f9a0b1c2d3e for CASCADE FK rules, composite indexes, acknowledged_by FK
- Update env.py for transaction-per-migration to avoid failure chaining
- Security: ondelete CASCADE on all org/gateway FKs, SET NULL on acknowledged_by
- Performance: composite indexes on (org_id, created_at) and (org_id, gateway_id) for all monitoring tables
2026-05-10 19:40:25 -05:00
|
|
|
"AlertEvent",
|
|
|
|
|
"AlertRule",
|
2026-05-10 11:14:55 -05:00
|
|
|
"ApprovalTaskLink",
|
|
|
|
|
"Approval",
|
|
|
|
|
"BoardGroupMemory",
|
|
|
|
|
"BoardWebhook",
|
|
|
|
|
"BoardWebhookPayload",
|
|
|
|
|
"BoardMemory",
|
|
|
|
|
"BoardOnboardingSession",
|
|
|
|
|
"BoardGroup",
|
|
|
|
|
"Board",
|
feat: Phase 2 monitoring models — 7 new tables with CASCADE and composite indexes
- Add monitoring.py: CostSnapshot, CronJobStatus, SessionEvent, SubAgentRun, SystemHealthMetric
- Add alert_rules.py: AlertRule, AlertEvent
- Register all 7 models in __init__.py
- Add Alembic migration 7a8b9c0d1e2f for 7 new monitoring tables
- Add Alembic migration 8f9a0b1c2d3e for CASCADE FK rules, composite indexes, acknowledged_by FK
- Update env.py for transaction-per-migration to avoid failure chaining
- Security: ondelete CASCADE on all org/gateway FKs, SET NULL on acknowledged_by
- Performance: composite indexes on (org_id, created_at) and (org_id, gateway_id) for all monitoring tables
2026-05-10 19:40:25 -05:00
|
|
|
"CostSnapshot",
|
|
|
|
|
"CronJobStatus",
|
2026-05-10 11:14:55 -05:00
|
|
|
"Gateway",
|
|
|
|
|
"GatewayInstalledSkill",
|
|
|
|
|
"MarketplaceSkill",
|
|
|
|
|
"SkillPack",
|
|
|
|
|
"Organization",
|
|
|
|
|
"BoardTaskCustomField",
|
|
|
|
|
"TaskCustomFieldDefinition",
|
|
|
|
|
"TaskCustomFieldValue",
|
|
|
|
|
"OrganizationMember",
|
|
|
|
|
"OrganizationBoardAccess",
|
|
|
|
|
"OrganizationInvite",
|
|
|
|
|
"OrganizationInviteBoardAccess",
|
feat: Phase 2 monitoring models — 7 new tables with CASCADE and composite indexes
- Add monitoring.py: CostSnapshot, CronJobStatus, SessionEvent, SubAgentRun, SystemHealthMetric
- Add alert_rules.py: AlertRule, AlertEvent
- Register all 7 models in __init__.py
- Add Alembic migration 7a8b9c0d1e2f for 7 new monitoring tables
- Add Alembic migration 8f9a0b1c2d3e for CASCADE FK rules, composite indexes, acknowledged_by FK
- Update env.py for transaction-per-migration to avoid failure chaining
- Security: ondelete CASCADE on all org/gateway FKs, SET NULL on acknowledged_by
- Performance: composite indexes on (org_id, created_at) and (org_id, gateway_id) for all monitoring tables
2026-05-10 19:40:25 -05:00
|
|
|
"SessionEvent",
|
|
|
|
|
"SubAgentRun",
|
|
|
|
|
"SystemHealthMetric",
|
2026-05-10 11:14:55 -05:00
|
|
|
"TaskDependency",
|
|
|
|
|
"Task",
|
|
|
|
|
"TaskFingerprint",
|
|
|
|
|
"Tag",
|
|
|
|
|
"TagAssignment",
|
|
|
|
|
"User",
|
|
|
|
|
]
|