Image security (needs to be improved)

This commit is contained in:
2024-10-20 16:36:31 -04:00
parent f435aedf2b
commit 92cd2ec06d
3 changed files with 94 additions and 5 deletions

View File

@ -19,6 +19,7 @@ class Photo(Base):
height = Column(Integer)
highlight_color = Column(String)
orientation = Column(Integer)
unique_key = Column(String(16), nullable=False) # Add this line
engine = create_engine('sqlite:///photos.db')
Base.metadata.create_all(engine)