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:
Userhas anemail, aname, and optional anavatar.Apartmenthaslocation,description,rental-price, and a fewphotos.
How your data are related?
Different data models may be related to each other. For examples:
Userwrites many blogPosts.Posthas manyCommentswritten by differentUsers.
How your data can be accessed by your users?
For examples:
ManagerandEmployeecan both readReview, but onlyManagercan writeReview.Usercan write and changePost, but not delete it.