#!/bin/bash echo "🔍 CHECKING ACTUAL MODEL STRUCTURE" echo "==================================" echo "📋 SubmitEventRequest fields:" grep -A 20 "pub struct SubmitEventRequest" src/models.rs || grep -A 20 "struct SubmitEventRequest" src/models.rs echo "" echo "📋 ApiError variants:" grep -A 10 "pub enum ApiError" src/error.rs || grep -A 10 "enum ApiError" src/error.rs echo "" echo "📋 Database schema for pending_events:" find . -name "*.sql" -exec grep -l "pending_events" {} \; | head -1 | xargs cat 2>/dev/null || echo "No migration files found" echo "" echo "🎯 What we need to do:" echo "1. Use the ACTUAL fields from SubmitEventRequest" echo "2. Use proper DateTime types" echo "3. Use correct ApiError variants" echo "4. Check if image/thumbnail fields exist in DB"