-- Sequential marks + GPS velocity + rolling fingerprint
-- Run this migration to add anti-fraud columns

ALTER TABLE challenge_claims
  ADD COLUMN scan_latitude DOUBLE NULL DEFAULT NULL AFTER bottle_features,
  ADD COLUMN scan_longitude DOUBLE NULL DEFAULT NULL AFTER scan_latitude;

CREATE INDEX idx_claims_user_date ON challenge_claims (user_id, code_date);
