�
� �he � � � S r SSKJrJrJrJrJrJr SSKJ r J
r
Jr SSKJ
r
Jr SSKJrJrJr SSKJrJrJrJr SSKJrJrJrJr SSKJrJrJ r / S Qr!g
)am SQLAlchemy models and Pydantic schemas for the MCP server.
This module exports all database models and their corresponding Pydantic schemas
for use throughout the application.
Model Organization:
- database: Core database infrastructure (Base, engine, sessions)
- repository: Repository entity and schemas
- code_file: CodeFile entity and schemas
- code_chunk: CodeChunk entity with pgvector embeddings and schemas
- task: Task entity and schemas
- task_relations: Task relationship entities (planning, branches, commits, history)
- tracking: Operational tracking entities (changes, embeddings, search analytics)
Constitutional Compliance:
- Principle VIII: Type safety (all models fully typed with mypy --strict)
- Principle V: Production quality (proper indexes, constraints, relationships)
- Principle IV: Performance (HNSW indexes, connection pooling, async operations)
� )�Base�
create_engine�create_session_factory�
drop_database�get_session�
init_database)�
Repository�RepositoryCreate�RepositoryResponse)�CodeFile�CodeFileResponse)� CodeChunk�CodeChunkCreate�CodeChunkResponse)�Task�
TaskCreate�TaskResponse�
TaskUpdate)�TaskBranchLink�TaskCommitLink�TaskPlanningReference�TaskStatusHistory)�ChangeEvent�EmbeddingMetadata�SearchQuery)r r r r r r r r
r r r
r r r r r r r r r r r r r r N)"�__doc__�databaser r r r r r �
repositoryr r
r � code_filer r
�
code_chunkr r r �taskr r r r �task_relationsr r r r �trackingr r r �__all__� � �src/models/__init__.py�<module>r( sM ���*� � I� H� 2� F� E� =� <�� � B� A�!�r&