Jul 8 - Update scheduled inspection

This commit is contained in:
2026-07-08 15:46:14 -04:00
parent f08ca997d7
commit 4d661e9776
15 changed files with 795 additions and 6 deletions
+7
View File
@@ -68,6 +68,13 @@ class Inspection(db.Model):
submit_latitude = db.Column(db.Numeric(10, 7), nullable=True)
submit_longitude = db.Column(db.Numeric(10, 7), nullable=True)
# Links a completed inspection back to the ScheduledInspection that
# prompted it (phase36). NULL for ad-hoc/manual inspections.
scheduled_inspection_id = db.Column(
db.Integer, db.ForeignKey('scheduled_inspections.id', ondelete='SET NULL'),
nullable=True, index=True
)
# ── Re-inspection / follow-up workflow ────────────────────────────────
parent_inspection_id = db.Column(
db.Integer, db.ForeignKey('inspections.id', ondelete='SET NULL'), nullable=True