Changes between Version 11 and Version 12 of RelationalDesign
- Timestamp:
- 01/29/25 14:13:34 (33 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RelationalDesign
v11 v12 8 8 9 9 === Табели 10 1. **users** (__**id**__, **username**, email, name, is_activate, password, description, registered_at, sex) 10 11 11 1. **users** (__**id**__,**username**, is_activate, password, description, registered_at, sex) 12 2. **moderator** (*id#(users)*) 12 13 13 2. **moderator** (__***id#(users)***__) 14 3. **developer** (*id#(users)*) 14 15 15 3. **developer** (__***id#(users)***__) 16 4. **project_manager** (*id#(users)*) 16 17 17 4. **project_owner** (__***id#(users)***__) 18 5. **thread** (__**id**__, content, **user_id#(users)**, created_at) 18 19 19 5. **thread** (__**id**__, content, __**user_id#(users)**__) 20 6. **topic_thread** (**title**, parent_id#(thread), *id#(thread)*) 20 21 21 6. **likes** (__**user_id#(users)**__, __**thread_id#(thread)**__) 22 7. **topic_guidelines** (id, topic_id, description) 22 23 23 7. **topic_threads_moderators** (__**thread_id#(thread)**__, __***user_id#(users)***__) 24 8. **discussion_thread** (**parent_id**, *id#(thread)*) 24 25 25 8. **tag** (__**name**__) 26 9. **project_thread** (**title**, repo_url, *id#(thread)*) 26 27 27 9. **tag_threads** (__**thread_id#(thread)**__, __**tag_name#(tag)**__) 28 10. **likes** (user_id#(users), thread_id#(thread)) 28 29 29 1 0. **topic_thread** (__***id#(thread)***__, **title**, guidelines, parent_topic_id#(thread))30 11. **topic_threads_moderators** (thread_id#(thread), user_id#(users)) 30 31 31 1 1. **topic_belongs_to_project** (__**topic_id#(thread)**__, __**project_id#(thread)**__)32 12. **tag** (__**name**__) 32 33 33 1 2. **blacklisted_user** (__**topic_id#(thread)**__, __**user_id#(users)**__, __**moderator_id#(users)**__, __**start_date**__, end_date, reason)34 13. **tag_threads** (thread_id#(thread), tag_name#(tag)) 34 35 35 1 3. **project_thread** (__***id#(thread)***__, **title**, repo_url)36 14. **topic_belongs_to_project** (topic_id#(thread), project_id#(thread)) 36 37 37 1 4. **discussion_thread** (__***id#(thread)***__, **user_id#(users)**, reply_discussion_id#(thread), **topic_id#(thread)**)38 15. **blacklisted_user** (topic_id#(thread), user_id#(users), moderator_id#(users), start_date, end_date, reason) 38 39 39 1 5. **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) 40 41 41 1 6. **permissions** (__**name**__)42 17. **permissions** (__**name**__) 42 43 43 1 7. **project_roles** (__**name**__, __**project_id#(thread)**__, description)44 18. **project_roles** (name, project_id#(thread), description) 44 45 45 1 8. **users_project_roles** (__**user_id#(users)**__, __**project_id#(thread)**__, __**role_name#(project_roles)**__)46 19. **users_project_roles** (user_id#(users), project_id, role_name) 46 47 47 19. **project_roles_permissions** (__**permission_name#(permissions)**__, __**role_name#(project_roles)**__, __**project_id#(thread)**__) 48 20. **project_roles_permissions** (permission_name#(permissions), role_name, project_id) 48 49 49 2 0. **project_request** (__**id**__, description, **status**, **user_id#(users)**, **project_id#(thread)**)50 21. **submission** (id) 50 51 51 2 1. **report** (__**id**__, created_at, **description**, status, **thread_id#(thread)**, **for_user_id#(users)**, **by_user_id#(users)**)52 22. **project_request** (__**id**__, description, **status**, **user_id#(users)**, **project_id#(thread)**, created_at, submission_id) 52 53 53 2 2. **channel** (__**name**__, description, __***project_id#(thread)***__, **developer#(users)**)54 23. **feedback** (description, submission_type, created_by, created_at, __**submission_id**__) 54 55 55 2 3. **messages** (__**sent_at**__, **content**, __***sent_by#(users)***__, __***project_id#(thread)***__, __***channel_name#(channel)***__)56 24. **report** (id, created_at, **description**, status, thread_id#(thread), for_user_id#(users), by_user_id#(users), submission_id) 56 57 58 25. **channel** (name, description, project_id#(thread), developer_id#(users)) 59 60 26. **messages** (sent_at, **content**, sent_by#(users), project_id, channel_name) 57 61 58 62 == DDL скрипта за бришење и креирање на табелите 59 [attachment: buildboard-ddl.2.sql]63 [attachment:V1__init_ddl.sql] 60 64 == DML скрипта за полнење на табелите за податоци 61 [attachment: test-data.sql]65 [attachment:V2__add_test_data.sql] 62 66 == Релационен дијаграм 63 [[Image(ddl-diagram -cmp.png)]]67 [[Image(ddl-diagram.png)]] 64 68 65 69