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 anemail
, aname
, and optional anavatar
.Apartment
haslocation
,description
,rental-price
, and a fewphotos
.
How your data are related?
Different data models may be related to each other. For examples:
User
writes many blogPosts
.Post
has manyComments
written by differentUsers
.
How your data can be accessed by your users?
For examples:
Manager
andEmployee
can both readReview
, but onlyManager
can writeReview
.User
can write and changePost
, but not delete it.