[REFORMAT] Ran black reformat
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
\
|
||||
# /home/cdp/code/MAIA/backend/modules/nlp/models.py
|
||||
from sqlalchemy import Column, Integer, Text, DateTime, ForeignKey, Enum as SQLEnum
|
||||
from sqlalchemy.orm import relationship
|
||||
@@ -7,10 +6,12 @@ import enum
|
||||
|
||||
from core.database import Base
|
||||
|
||||
|
||||
class MessageSender(enum.Enum):
|
||||
USER = "user"
|
||||
AI = "ai"
|
||||
|
||||
|
||||
class ChatMessage(Base):
|
||||
__tablename__ = "chat_messages"
|
||||
|
||||
@@ -20,4 +21,4 @@ class ChatMessage(Base):
|
||||
text = Column(Text, nullable=False)
|
||||
timestamp = Column(DateTime(timezone=True), server_default=func.now())
|
||||
|
||||
owner = relationship("User") # Relationship to the User model
|
||||
owner = relationship("User") # Relationship to the User model
|
||||
|
||||
Reference in New Issue
Block a user