Design a multiplayer online chess game. Explain the API endpoints, database schema, and how you would handle real-time game state updates.