Changes between Version 20 and Version 21 of RelationalDesign
- Timestamp:
- 09/21/25 20:41:08 (37 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RelationalDesign
v20 v21 8 8 9 9 === Табели 10 1. **users** (__**id**__, **username**, **email**, **name**, **is_activate**, **password**, description, **registered_at**, **sex**) 10 1. **users** 11 (__**id**__, **username**, **email**, **name**, **is_activate**, **password**, description, **registered_at**, **sex**) 11 12 12 2. **moderator** (__**id#(users)**__) 13 2. **moderator** 14 (__**id#(users)**__) 13 15 14 3. **developer** (__**id#(users)**__) 16 3. **developer** 17 (__**id#(users)**__) 15 18 16 4. **project_manager** (__**id#(users)**__) 19 4. **project_manager** 20 (__**id#(users)**__) 17 21 18 5. **thread** (__**id**__, content, **user_id#(users)**, **created_at**)19 6. **embeddable_thread** (**__id__**#(thread)) 22 5. **thread** 23 (__**id**__, content, **created_at**, **user_id#(users)**) 20 24 21 7. **topic_thread** (**title**, parent_id#(project_thread), __**id#(embeddable_thread)**__) 25 6. **project_thread** 26 (__**id#(thread)**, **title**, repo_url) 22 27 23 8. **topic_guidelines** (__**id**__, __**topic_id#(topic_thread)**__, description) 28 7. **embeddable_thread** 29 (__**id#(thread)**) 24 30 25 9. **discussion_thread** (**parent_id**#(embeddable_thread), __**id#(embeddable_thread)**__) 31 8. **topic_thread** 32 (__**id#(embeddable_thread)**, **title**, parent_id#(project_thread)) 26 33 27 10. **project_thread** (**title**, repo_url, __**id#(thread)**__) 34 9. **topic_guidelines** 35 (__**id**__, __**topic_id#(topic_thread)**__, description) 28 36 29 11. **likes** (__**user_id#(users)**__, __**thread_id#(thread)**__) 37 10. **discussion_thread** 38 (__**id#(embeddable_thread)**, **parent_id#(embeddable_thread)**__) 30 39 31 12. **topic_threads_moderators** (__**thread_id#(thread)**__, __**user_id#(users)**__,**started_at**) 40 11. **likes** 41 (__**user_id#(users)**__, __**thread_id#(thread)**__) 32 42 33 13. **tag** (__**name**__,**creator_id**#(moderator)) 43 12. **topic_threads_moderators** 44 (__**thread_id#(topic_thread)**__, __**user_id#(moderator)**__, **started_at**) 34 45 35 14. **tag_threads** (__**thread_id#(thread)**__, __**tag_name#(tag)**__) 46 13. **tag** 47 (__**name**__, **creator_id#(moderator)**__) 36 48 37 15. **topic_belongs_to_project** (__**topic_id#(thread)**__, __**project_id#(thread)**__) 49 14. **tag_threads** 50 (__**thread_id#(thread)**__, __**tag_name#(tag)**__) 38 51 39 16. **blacklisted_user** (__**topic_id#(thread)**__, __**user_id#(users)**__, __**moderator_id#(users)**__, __**start_date**__, end_date, reason) 52 15. **blacklisted_user** 53 (__**user_id#(users)**__, __**moderator_id#(moderator)**__, __**topic_id#(topic_thread)**__, __**start_date**__, end_date, reason) 40 54 41 17. **developer_associated_with_project** (__**project_id#(thread)**__, __**developer_id#(users)**__, __**started_at**__, ended_at) 55 16. **developer_associated_with_project** 56 (__**project_id#(project_thread)**__, __**developer_id#(developer)**__, __**started_at**__, ended_at) 42 57 43 18. **permissions** (__**name**__) 58 17. **permissions** 59 (__**name**__) 44 60 45 19. **project_roles** (__**name**__, __**project_id#**__(thread), description) 61 18. **project_resource** 62 (__**id**__) 46 63 47 20. **users_project_roles** (__**user_id#(users)**__, __**project_id#(project_roles)**__, __**role_name#(project_roles)**__) 64 19. **project_role** 65 (__**id**__, **name**, **project_id#(project_thread)**, **override_type**) 48 66 49 21. **project_roles_permissions** (__**permission_name#(permissions)**__, __**role_name#(project_roles)**__, __**project_id#(project_roles)**__) 67 20. **role_permissions** 68 (__**permission_name#(permissions)**__, __**role_id#(project_role)**__) 50 69 51 22. **submission** (__**id**__,**created_at**,description,**status**,**created_by#(users)**) 70 21. **role_permissions_overrides** 71 (__**role_id#(project_role)**__, __**permission_name#(permissions)**__, __**project_resource_id#(project_resource)**__) 52 72 53 22. **project_request** (__**id**#(submission)__, **project_id#(thread)**)) 73 22. **users_project_roles** 74 (__**user_id#(developer)**__, __**role_id#(project_role)**__) 54 75 55 23. **feedback** (description, **submission_type**, created_by#(users), **created_at**, __**submission_id#(submission)**__) 76 23. **submission** 77 (__**id**__, **created_at**, **description**, **status**, **created_by#(users)**) 56 78 57 24. **report** (__**id**#(submission)__, __**thread_id**#(thread)__, __**for_user_id**#(users)) 79 24. **project_request** 80 (__**id#(submission)**, **project_id#(thread)**__) 58 81 59 25. **channel** (__**name**__, description, __**project_id#(thread)**__, **developer_id**#(users)) 82 25. **feedback** 83 (__**submission_id#(submission)**, description, **submission_type**, **created_at**, **created_by#(users)**) 60 84 61 26. **messages** (__**sent_at__**, **content**, __**sent_by#(users)**__, __**project_id#(channel)**__, __**channel_name#(channel)**__) 85 26. **report** 86 (__**id#(submission)**, **thread_id#(topic_thread)**__, **for_user_id#(users)**__) 87 88 27. **channel** 89 (__**name**, __**project_id#(project_thread)**__, description, **project_resource_id#(project_resource)**, **developer_id#(developer)**) 90 91 28. **messages** 92 (__**channel_name#(channel)**__, __**project_id#(project_thread)**__, __**sent_at**__, __**sent_by#(developer)**__, **content**) 93 62 94 63 95 == DDL скрипта за бришење и креирање на табелите