Jul 8 - Update scheduled inspection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user