05/21 Fix issue with multiple photos 2

This commit is contained in:
Nguyen Ngo
2026-05-21 13:14:56 -04:00
parent 70f7978ce2
commit 1459b5316b
5 changed files with 114 additions and 45 deletions
+4
View File
@@ -63,6 +63,10 @@ class Issue(db.Model):
resolved_at = db.Column(db.DateTime)
result_notes = db.Column(db.Text)
result_photos = db.Column(db.JSON) # list of relative paths e.g. ["uploads/issue_photos/abc.jpg"]
# Extra evidence photos submitted from the iPad at issue-creation time.
# Stored separately from result_photos (resolution photos added via web)
# so they display under "Photo Evidence" rather than "Resolution Details".
mobile_photo_paths = db.Column(db.JSON, nullable=True)
# ── Resolution verification ──────────────────────────────────────────
verified_by = db.Column(db.Integer, db.ForeignKey('users.id', ondelete='SET NULL'), nullable=True)