Implemented a SQL–NoSQL analytics database with ERD modeling and advanced queries for AppleCare-like repair and inventory intelligence.
Designed and implemented a hybrid SQL–NoSQL database system to analyze AppleCare repair trends and optimize parts inventory. Built a normalized relational schema with ERDs for transactional data (repairs, devices, parts usage) and a NoSQL store for semi-structured diagnostic logs. Developed complex SQL queries for business reporting, including SLA compliance, part-failure forecasting, and cost analysis. The system supports scalable analytics workflows for Apple-like retail and service operations.
- Device (iPhone, MacBook, Watch, etc.)
- Customer
- RepairJob
- Part
- ServiceCenter
- Technician
- Warranty
- RepairPartUsage (junction table)
- Inventory (store-wise)
- One customer → many repair jobs
- One device → many repair jobs
- One repair job → many parts used
- One service center → many repair jobs
- One warranty → one device
- Customers, devices, repair jobs, service centers, technicians, parts, inventory, and repair-part usage.
- Fully normalized schema with primary and foreign key constraints.
- Supports advanced business analytics queries.
- Diagnostic logs, customer feedback, device error history, and service center activity logs.
- Handles semi-structured JSON data for analytics.
- Extracts data from PostgreSQL.
- Transforms repair job data with derived features (e.g., repair time category).
- Loads into MongoDB for hybrid analytics.
- Repair trends, SLA compliance, parts failure forecasting, inventory optimization.
- Customer feedback and sentiment tracking.