Changes between Version 14 and Version 15 of RelationalDesign
- Timestamp:
- 01/29/25 19:18:41 (28 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RelationalDesign
v14 v15 8 8 9 9 === Табели 10 1. **users** (__**id**__, **username**, email, name, is_activate, password, description, registered_at, sex)10 1. **users** (__**id**__, **username**, **email**, **name**, **is_activate**, **password**, description, **registered_at**, **sex**) 11 11 12 2. **moderator** ( *id#(users)*)12 2. **moderator** (__**id#(users)**__) 13 13 14 3. **developer** ( *id#(users)*)14 3. **developer** (__**id#(users)**__) 15 15 16 4. **project_manager** ( *id#(users)*)16 4. **project_manager** (__**id#(users)**__) 17 17 18 5. **thread** (__**id**__, content, **user_id#(users)**, created_at)18 5. **thread** (__**id**__, content, **user_id#(users)**, **created_at**) 19 19 20 6. **topic_thread** (**title**, parent_id#(thread), *id#(thread)*)20 6. **topic_thread** (**title**, parent_id#(thread), __**id#(thread)**__) 21 21 22 7. **topic_guidelines** ( id, topic_id, description)22 7. **topic_guidelines** (__**id**__, __**topic_id#(topic_thread)**__, description) 23 23 24 8. **discussion_thread** (**parent_id**, *id#(thread)*)24 8. **discussion_thread** (**parent_id**, __**id#(thread)**__) 25 25 26 9. **project_thread** (**title**, repo_url, *id#(thread)*)26 9. **project_thread** (**title**, repo_url, __**id#(thread)**__) 27 27 28 10. **likes** ( user_id#(users), thread_id#(thread))28 10. **likes** (__**user_id#(users)**__, __**thread_id#(thread)**__) 29 29 30 11. **topic_threads_moderators** ( thread_id#(thread), user_id#(users))30 11. **topic_threads_moderators** (__**thread_id#(thread)**__, __**user_id#(users)**__) 31 31 32 32 12. **tag** (__**name**__) 33 33 34 13. **tag_threads** ( thread_id#(thread), tag_name#(tag))34 13. **tag_threads** (__**thread_id#(thread)**__, __**tag_name#(tag)**__) 35 35 36 14. **topic_belongs_to_project** ( topic_id#(thread), project_id#(thread))36 14. **topic_belongs_to_project** (__**topic_id#(thread)**__, __**project_id#(thread)**__) 37 37 38 15. **blacklisted_user** ( topic_id#(thread), user_id#(users), moderator_id#(users), start_date, end_date, reason)38 15. **blacklisted_user** (__**topic_id#(thread)**__, __**user_id#(users)**__, __**moderator_id#(users)**__, __**start_date**__, end_date, reason) 39 39 40 16. **developer_associated_with_project** ( project_id#(thread), developer_id#(users), started_at, ended_at)40 16. **developer_associated_with_project** (__**project_id#(thread)**__, __**developer_id#(users)**__, __**started_at**__, ended_at) 41 41 42 42 17. **permissions** (__**name**__) 43 43 44 18. **project_roles** ( name, project_id#(thread), description)44 18. **project_roles** (__**name**__, __**project_id#**__(thread), description) 45 45 46 19. **users_project_roles** ( user_id#(users), project_id, role_name)46 19. **users_project_roles** (__**user_id#(users)**__, __**project_id#(project_roles)**__, __**role_name#(project_roles)**__) 47 47 48 20. **project_roles_permissions** ( permission_name#(permissions), role_name, project_id)48 20. **project_roles_permissions** (__**permission_name#(permissions)**__, __**role_name#(project_roles)**__, __**project_id#(project_roles)**__) 49 49 50 21. **submission** ( id)50 21. **submission** (__**id**__) 51 51 52 22. **project_request** (__**id**__, description, **status**, **user_id#(users)**, **project_id#(thread)**, created_at, submission_id)52 22. **project_request** (__**id**__, description, **status**, **user_id#(users)**, **project_id#(thread)**, **created_at**, submission_id#(submission)) 53 53 54 23. **feedback** (description, submission_type, created_by, created_at, __**submission_id**__)54 23. **feedback** (description, **submission_type**, created_by#(users), **created_at**, __**submission_id#(submission)**__) 55 55 56 24. **report** (__**id**__, created_at, **description**, status, __**thread_id#(thread)**__, __**for_user_id#(users)**__, __**by_user_id#(users)**__, submission_id)56 24. **report** (__**id**__, **created_at**, **description**, status, __**thread_id#(thread)**__, __**for_user_id#(users)**__, __**by_user_id#(users)**__, submission_id#(submission)) 57 57 58 58 25. **channel** (__**name**__, description, __**project_id#(thread)**__, developer_id#(users)) 59 59 60 26. **messages** (__**sent_at__**, **content**, __**sent_by#(users)**__, __**project_id **__, __**channel_name**__)60 26. **messages** (__**sent_at__**, **content**, __**sent_by#(users)**__, __**project_id#(channel)**__, __**channel_name#(channel)**__) 61 61 62 62 == DDL скрипта за бришење и креирање на табелите