Data Tables and Structs
Structure the Data Tables as you would a relational data base. Have a DT for each Team.
e.g. DT_NY_METS
Row Name (player), Position, GP, AB, R, H, RBI, BB, SO, HR, Avg, icon, etc, etc, etc
- Pete Alonso, First baseman, 130, 487, 72, 132, 105, 51, 110, 31, .271…
- Jeff McNeil, Second baseman, 117, 418, 55, 133, 49, 28, 55, 7, .318…
Clients can read them directly, so no need to replicate anything. Additionally DT’s can be loaded at runtime.