How v-zagoruyko/fotoflash-backend works
FotoFlash is a Django backend for studio-hall rentals. Clients browse locations and extras, request a priced booking, and pay; booking state, bonus points, reminders, and cancellations are managed by backend services. Staff manage the catalog and bookings through Django administration. The graph follows documented API routing and sampled service references; unsampled views and integrations are shown only where the source index supports the relationship.
Main entry points: bookings/services.py Booking services · api_urls.py API routing · payments/services.py Payment services · tasks.py Booking tasks
Components 25
API and access
- API routing
config/api_urls.py - User API
apps/users/views.py - Catalog API
apps/catalog/views.py - Booking API
apps/bookings/views.py - Booking serializers
apps/bookings/serializers.py - Payment API
apps/payments/views.py - Documents API
apps/documents/views.py
Booking domain
- Catalog records
apps/catalog/models.py - Booking services
apps/bookings/services.py - Pricing and quotes
apps/bookings/pricing.py - Booking records
apps/bookings/models.py - Bonus ledger
apps/bonuses/models.py
Payments
- Payment services
apps/payments/services.py - Payment records
apps/payments/models.py - Provider selection
apps/payments/providers/__init__.py - T-Bank provider
apps/payments/providers/tbank.py
Operations and records
- User records
apps/users/models.py - Rules documents
apps/documents/models.py - Booking tasks
apps/bookings/tasks.py - Booking emails
apps/bookings/emails.py - Celery runtime
config/celery.py
Other components
- Client
- Staff
- T-Bank
- Application database
Connections 38
- Client → API routing: requests
config/api_urls.py - Staff → Catalog records: manages
- API routing → User API: routes
config/api_urls.py - API routing → Catalog API: routes
config/api_urls.py - API routing → Booking API: routes
config/api_urls.py - API routing → Payment API: routes
config/api_urls.py - API routing → Documents API: routes
config/api_urls.py - User API → User records: reads and writes
- Catalog API → Catalog records: reads
apps/catalog/views.py - Catalog API → Booking services: requests booking actions
apps/catalog/views.py - Booking API → Booking serializers: uses
apps/bookings/views.py - Booking API → Booking services: delegates
apps/bookings/views.py - Booking services → Pricing and quotes: builds quotes
apps/bookings/services.py - Booking services → Catalog records: reads
apps/bookings/services.py - Booking services → Booking records: creates and updates
apps/bookings/services.py - Booking services → Bonus ledger: updates points
apps/bookings/services.py - Booking services → Payment services: initiates payment actions
apps/bookings/services.py - Payment API → Payment services: delegates
- Payment services → Payment records: creates and updates
apps/payments/services.py - Payment services → Booking records: reads booking
apps/payments/services.py - Payment services → Booking services: confirms booking
apps/payments/services.py - Payment services → Provider selection: selects provider
apps/payments/services.py - Provider selection → T-Bank provider: registers
apps/payments/providers/__init__.py - T-Bank provider → T-Bank: sends payment requests
apps/payments/providers/tbank.py - Documents API → Rules documents: reads
apps/documents/views.py - Booking services → Booking tasks: queues notifications
apps/bookings/services.py - Booking tasks → Booking services: runs lifecycle jobs
apps/bookings/tasks.py - Booking tasks → Booking emails: sends messages
apps/bookings/tasks.py - Booking emails → Booking records: reads booking
apps/bookings/emails.py - Booking emails → Bonus ledger: reads bonus data
apps/bookings/emails.py - Booking emails → Payment records: reads payment data
apps/bookings/emails.py - Booking tasks → Celery runtime: registers tasks
apps/bookings/tasks.py - User records → Application database: persists
- Catalog records → Application database: persists
- Booking records → Application database: persists
- Bonus ledger → Application database: persists
- Payment records → Application database: persists
- Rules documents → Application database: persists