2 Commits

Author SHA1 Message Date
Automated Action
f9a4e68823 Fix Alembic configuration interpolation error
- Fixed configparser.InterpolationSyntaxError by simplifying alembic.ini format strings
- Updated env.py to handle configuration parsing errors gracefully
- Added proper exception handling for logging configuration
- Ensured database directory creation before migrations
- Added fallback engine creation if config parsing fails
- Simplified formatter configuration to avoid interpolation issues

The migration system now handles deployment environments more robustly.
2025-06-24 13:31:11 +00:00
Automated Action
b78ac1f072 Create comprehensive gym membership management system
Features:
- User registration and authentication with JWT tokens
- Multi-level admin access (Admin and Super Admin)
- Gym management with membership plans
- Subscription management with payment integration
- Stripe and Paystack payment gateway support
- Role-based access control
- SQLite database with Alembic migrations
- Comprehensive API endpoints with FastAPI
- Database models for users, gyms, memberships, subscriptions, and transactions
- Admin endpoints for user management and financial reporting
- Health check and documentation endpoints

Core Components:
- FastAPI application with CORS support
- SQLAlchemy ORM with relationship mapping
- JWT-based authentication with bcrypt password hashing
- Payment service abstraction for multiple gateways
- Pydantic schemas for request/response validation
- Alembic database migration system
- Admin dashboard functionality
- Environment variable configuration
2025-06-20 09:08:21 +00:00