dev-KPI / messenger-backend

🦾 Back-end part of the messenger application.
https://messenger-backend.fly.dev/
MIT License
1 stars 0 forks source link

[WIP]: 33 designing models #39

Open JaoodxD opened 11 months ago

JaoodxD commented 11 months ago

Add Models.md file to describe core project's entities with it's corresponding relations.

JaoodxD commented 11 months ago
JaoodxD commented 11 months ago
JaoodxD commented 11 months ago
  • MESSAGE should be related to GROUP.

  • Rename CONFIG to SETTINGS to prevent misunderstanding as CONFIG can be related to server configs.

  • Add ROLE for USER in GROUP. ("Owner", "Admin", "Member")

  • Add SETTINGS for GROUP.

  • CATEGORY (FOLDER?) to allow USER group up his GROUP.

  • MEDIA (RESOURCE?) to store media-files (images, audio, video, files etc.)

  • [x] Done

  • Relation between messages (MESSAGE) should be one-to-many

  • [x] Done

JaoodxD commented 11 months ago
  1. Relation between MESSAGE and GROUP should be many-to-one.
  2. Split SETTINGS INTO USER_SETTINGS and GROUP_SETTINGS.
  3. Fix MEDIA should be relateed to MESSAGE instead of GROUP.