MCPcopy Create free account
hub / github.com/TAMustafa/Local_Chat_RAG / File

Class File

backend/app/db/models.py:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 chats = relationship("ChatHistory", back_populates="user")
14
15class File(Base):
16 __tablename__ = "files"
17 id = Column(Integer, primary_key=True)
18 filename = Column(String, nullable=False)
19 filepath = Column(String, nullable=False)
20 upload_time = Column(DateTime, default=datetime.utcnow)
21 user_id = Column(Integer, ForeignKey("users.id"), nullable=True)
22 file_metadata = Column(Text)
23 user = relationship("User", back_populates="files")
24 chats = relationship("ChatHistory", back_populates="file")
25
26class ChatHistory(Base):
27 __tablename__ = "chat_history"

Callers 2

upload_fileFunction · 0.85
upload_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected