church-api/check_models.sh
Benjamin Slingo 0c06e159bb Initial commit: Church API Rust implementation
Complete church management system with bulletin management, media processing, live streaming integration, and web interface. Includes authentication, email notifications, database migrations, and comprehensive test suite.
2025-08-19 20:56:41 -04:00

23 lines
790 B
Bash
Executable file

#!/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"