Skip to main content

The data model

In this section, we will guide you through a straightforward database model for your dapp.

Our dapp's database model features three main tables:

  1. Users: This table stores user identities.
  2. Posts: This table manages posts, including their content, the user who created each post, and the timestamps of creation.
  3. Followers: This table represents the connections between users, specifically their followers.

You can visualize this model as follows: