shadowed-realms-mobile/ShadowedRealmsMobile
matt a73d15eaa2 Core Foundation: Complete entity models and database context
- Add GameDbContext with kingdom-scoped query filters and Identity integration
- Add Kingdom model with population management and KvK tracking
- Add Player model with complete progression system (Castle 1-44, T1-T13 troops)
- Add Alliance model with research trees, territory system, and coalition mechanics
- Add CombatLog model with field interception and comprehensive battle tracking
- Add PurchaseLog model with enhanced chargeback protection and customer segmentation
- Add VipRewards model with KoA-inspired secret tier system for whale retention

Features implemented:
* Server-authoritative design with comprehensive validation
* Kingdom-based data partitioning for horizontal scaling
* Anti-pay-to-win mechanics with skill-based alternatives
* Monthly/lifetime customer segmentation for actionable insights
* Robust fraud detection and chargeback prevention
* Secret spending tiers and milestone rewards system
* Production-ready models with complete business logic

All models include proper file headers, error handling, and are ready for Entity Framework integration.
2025-10-19 12:04:37 -05:00
..
2025-10-19 10:45:08 -05:00