TT-003: complete request-module integration into modular platform

- integrated request-module into module registry
- moved backend into modules/request-module
- added manifest.json and module.py
- implemented dynamic router mounting
- implemented dynamic static mounting
- removed direct dependencies from platform core
- verified startup with request-module
- verified startup without request-module
- added implementation_report_003.md
This commit is contained in:
2026-08-06 16:31:27 +03:00
parent c97e6a42f7
commit 6c86f0f571
180 changed files with 204885 additions and 25 deletions
@@ -0,0 +1,23 @@
"""Comment model."""
from sqlalchemy import Column, Text, DateTime, ForeignKey, Integer
from sqlalchemy.orm import relationship
from request_app.models.base import Base, TimestampMixin
class Comment(Base, TimestampMixin):
"""Comment model."""
__tablename__ = "comments"
id = Column(Integer, primary_key=True, index=True)
ticket_id = Column(Integer, ForeignKey("tickets.id", ondelete="CASCADE"), nullable=False)
created_by = Column(Integer, ForeignKey("users.id", ondelete="CASCADE"), nullable=False)
comment_text = Column(Text, nullable=False)
# Relationships
ticket = relationship("Ticket", back_populates="comments")
user = relationship("User", back_populates="comments")
def __repr__(self) -> str:
return f"<Comment(id={self.id}, ticket_id={self.ticket_id})>"