"""
AgentCoord 数据库模块
提供 PostgreSQL 数据库连接、模型和 CRUD 操作
基于 DATABASE_DESIGN.md 设计
"""

from .database import get_db, get_db_context, test_connection, engine, text
from .models import MultiAgentTask, UserAgent, ExportRecord, TaskStatus
from .crud import MultiAgentTaskCRUD, UserAgentCRUD, ExportRecordCRUD

__all__ = [
    # 连接管理
    "get_db",
    "get_db_context",
    "test_connection",
    "engine",
    "text",
    # 模型
    "MultiAgentTask",
    "UserAgent",
    "ExportRecord",
    "TaskStatus",
    # CRUD
    "MultiAgentTaskCRUD",
    "UserAgentCRUD",
    "ExportRecordCRUD",
]
