fix(phase1): add photo fields to schemas and set datetime default

This commit is contained in:
2026-04-20 21:49:51 +03:00
parent 6ed88fdb84
commit 92f6977cae
18 changed files with 250 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ class Item(Base):
# Photo fields for item onboarding
photo_path = Column(String, nullable=True)
photo_thumbnail_path = Column(String, nullable=True)
photo_upload_date = Column(DateTime, nullable=True)
photo_upload_date = Column(DateTime, default=datetime.datetime.now, nullable=True)
# Generic box/container association for multi-item OCR scanning
box_label = Column(String, index=True, nullable=True)