forked from cardosofelipe/fast-next-template
- Add Project model with slug, description, autonomy level, and settings - Add AgentType model for agent templates with model config and failover - Add AgentInstance model for running agents with status and memory - Add Issue model with external tracker sync (Gitea/GitHub/GitLab) - Add Sprint model with velocity tracking and lifecycle management - Add comprehensive Pydantic schemas with validation - Add full CRUD operations for all models with filtering/sorting - Add 280+ tests for models, schemas, and CRUD operations Implements #23, #24, #25, #26, #27 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
57 lines
1.3 KiB
Python
57 lines
1.3 KiB
Python
"""
|
|
Models package initialization.
|
|
Imports all models to ensure they're registered with SQLAlchemy.
|
|
"""
|
|
|
|
# First import Base to avoid circular imports
|
|
from app.core.database import Base
|
|
|
|
from .base import TimestampMixin, UUIDMixin
|
|
|
|
# OAuth models (client mode - authenticate via Google/GitHub)
|
|
from .oauth_account import OAuthAccount
|
|
|
|
# OAuth provider models (server mode - act as authorization server for MCP)
|
|
from .oauth_authorization_code import OAuthAuthorizationCode
|
|
from .oauth_client import OAuthClient
|
|
from .oauth_provider_token import OAuthConsent, OAuthProviderRefreshToken
|
|
from .oauth_state import OAuthState
|
|
from .organization import Organization
|
|
|
|
# Import models
|
|
from .user import User
|
|
from .user_organization import OrganizationRole, UserOrganization
|
|
from .user_session import UserSession
|
|
|
|
# Syndarix domain models
|
|
from .syndarix import (
|
|
AgentInstance,
|
|
AgentType,
|
|
Issue,
|
|
Project,
|
|
Sprint,
|
|
)
|
|
|
|
__all__ = [
|
|
"Base",
|
|
"OAuthAccount",
|
|
"OAuthAuthorizationCode",
|
|
"OAuthClient",
|
|
"OAuthConsent",
|
|
"OAuthProviderRefreshToken",
|
|
"OAuthState",
|
|
"Organization",
|
|
"OrganizationRole",
|
|
"TimestampMixin",
|
|
"UUIDMixin",
|
|
"User",
|
|
"UserOrganization",
|
|
"UserSession",
|
|
# Syndarix models
|
|
"AgentInstance",
|
|
"AgentType",
|
|
"Issue",
|
|
"Project",
|
|
"Sprint",
|
|
]
|