Data model

Data models describe your data structure:

  • How your data look like?
  • How they are related?
  • How your users can access them?
Data model editor

How your data look like?

A data model may contain several data fields to store different types of information. For examples:

  • User has an email, a name, and optional an avatar.
  • Apartment has location, description, rental-price, and a few photos.

Different data models may be related to each other. For examples:

  • User writes many blog Posts.
  • Post has many Comments written by different Users.

How your data can be accessed by your users?

For examples:

  • Manager and Employee can both read Review, but only Manager can write Review.
  • User can write and change Post, but not delete it.

Table of contents