0

For an app like iOS Messages:

  1. How should I design the server database queries & schema?

    Queries

    • Create a user.
    • Get a user's chats.
    • Get the messages between two users.
    • Add a message to a chat (creating the chat if it doesn't yet exist).

    Note:

  2. How should I query a user's chats, each with its latest message?

    Example User Interface (UI)

    iOS Messages

See my design & query on SQLFiddle. It works, but how can I make it better?

ma11hew28
  • 121,420
  • 116
  • 450
  • 651

0 Answers0