Atualizar app/models.py
This commit is contained in:
@@ -33,6 +33,18 @@ class Attachment(Base):
|
||||
path = Column(String) # /data/<uuid>
|
||||
conversation = relationship("Conversation", back_populates="attachments")
|
||||
|
||||
|
||||
class File(Base):
|
||||
__tablename__ = "files"
|
||||
id = Column(String, primary_key=True)
|
||||
user_email = Column(String, ForeignKey("users.email"))
|
||||
path = Column(String)
|
||||
original_name = Column(String)
|
||||
created_at = Column(DateTime, default=datetime.utcnow)
|
||||
|
||||
|
||||
|
||||
|
||||
# ***
|
||||
|
||||
class User(Base):
|
||||
|
||||
Reference in New Issue
Block a user