Changes between Version 20 and Version 21 of RelationalDesign


Ignore:
Timestamp:
09/21/25 20:41:08 (37 hours ago)
Author:
225144
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RelationalDesign

    v20 v21  
    88
    99=== Табели
    10 1. **users** (__**id**__, **username**, **email**, **name**, **is_activate**, **password**, description, **registered_at**, **sex**)
     101. **users** 
     11   (__**id**__, **username**, **email**, **name**, **is_activate**, **password**, description, **registered_at**, **sex**) 
    1112
    12 2. **moderator** (__**id#(users)**__)
     132. **moderator** 
     14   (__**id#(users)**__) 
    1315
    14 3. **developer** (__**id#(users)**__)
     163. **developer** 
     17   (__**id#(users)**__) 
    1518
    16 4. **project_manager** (__**id#(users)**__)
     194. **project_manager** 
     20   (__**id#(users)**__) 
    1721
    18 5. **thread** (__**id**__, content, **user_id#(users)**, **created_at**)
    19 6. **embeddable_thread** (**__id__**#(thread))
     225. **thread**  
     23   (__**id**__, content, **created_at**, **user_id#(users)**) 
    2024
    21 7. **topic_thread** (**title**, parent_id#(project_thread), __**id#(embeddable_thread)**__)
     256. **project_thread** 
     26   (__**id#(thread)**, **title**, repo_url) 
    2227
    23 8. **topic_guidelines** (__**id**__, __**topic_id#(topic_thread)**__, description)
     287. **embeddable_thread** 
     29   (__**id#(thread)**) 
    2430
    25 9. **discussion_thread** (**parent_id**#(embeddable_thread), __**id#(embeddable_thread)**__)
     318. **topic_thread** 
     32   (__**id#(embeddable_thread)**, **title**, parent_id#(project_thread)) 
    2633
    27 10. **project_thread** (**title**, repo_url, __**id#(thread)**__)
     349. **topic_guidelines** 
     35   (__**id**__, __**topic_id#(topic_thread)**__, description) 
    2836
    29 11. **likes** (__**user_id#(users)**__, __**thread_id#(thread)**__)
     3710. **discussion_thread** 
     38   (__**id#(embeddable_thread)**, **parent_id#(embeddable_thread)**__) 
    3039
    31 12. **topic_threads_moderators** (__**thread_id#(thread)**__, __**user_id#(users)**__,**started_at**)
     4011. **likes** 
     41   (__**user_id#(users)**__, __**thread_id#(thread)**__) 
    3242
    33 13. **tag** (__**name**__,**creator_id**#(moderator))
     4312. **topic_threads_moderators** 
     44   (__**thread_id#(topic_thread)**__, __**user_id#(moderator)**__, **started_at**) 
    3445
    35 14. **tag_threads** (__**thread_id#(thread)**__, __**tag_name#(tag)**__)
     4613. **tag** 
     47   (__**name**__, **creator_id#(moderator)**__) 
    3648
    37 15. **topic_belongs_to_project** (__**topic_id#(thread)**__, __**project_id#(thread)**__)
     4914. **tag_threads** 
     50   (__**thread_id#(thread)**__, __**tag_name#(tag)**__) 
    3851
    39 16. **blacklisted_user** (__**topic_id#(thread)**__, __**user_id#(users)**__, __**moderator_id#(users)**__, __**start_date**__, end_date, reason)
     5215. **blacklisted_user** 
     53   (__**user_id#(users)**__, __**moderator_id#(moderator)**__, __**topic_id#(topic_thread)**__, __**start_date**__, end_date, reason) 
    4054
    41 17. **developer_associated_with_project** (__**project_id#(thread)**__, __**developer_id#(users)**__, __**started_at**__, ended_at)
     5516. **developer_associated_with_project** 
     56   (__**project_id#(project_thread)**__, __**developer_id#(developer)**__, __**started_at**__, ended_at) 
    4257
    43 18. **permissions** (__**name**__)
     5817. **permissions** 
     59   (__**name**__) 
    4460
    45 19. **project_roles** (__**name**__, __**project_id#**__(thread), description)
     6118. **project_resource** 
     62   (__**id**__) 
    4663
    47 20. **users_project_roles** (__**user_id#(users)**__, __**project_id#(project_roles)**__, __**role_name#(project_roles)**__)
     6419. **project_role** 
     65   (__**id**__, **name**, **project_id#(project_thread)**, **override_type**) 
    4866
    49 21. **project_roles_permissions** (__**permission_name#(permissions)**__, __**role_name#(project_roles)**__, __**project_id#(project_roles)**__)
     6720. **role_permissions** 
     68   (__**permission_name#(permissions)**__, __**role_id#(project_role)**__) 
    5069
    51 22. **submission** (__**id**__,**created_at**,description,**status**,**created_by#(users)**)
     7021. **role_permissions_overrides** 
     71   (__**role_id#(project_role)**__, __**permission_name#(permissions)**__, __**project_resource_id#(project_resource)**__) 
    5272
    53 22. **project_request** (__**id**#(submission)__, **project_id#(thread)**))
     7322. **users_project_roles** 
     74   (__**user_id#(developer)**__, __**role_id#(project_role)**__) 
    5475
    55 23. **feedback** (description, **submission_type**, created_by#(users), **created_at**, __**submission_id#(submission)**__)
     7623. **submission** 
     77   (__**id**__, **created_at**, **description**, **status**, **created_by#(users)**) 
    5678
    57 24. **report** (__**id**#(submission)__,  __**thread_id**#(thread)__, __**for_user_id**#(users))
     7924. **project_request** 
     80   (__**id#(submission)**, **project_id#(thread)**__) 
    5881
    59 25. **channel** (__**name**__, description, __**project_id#(thread)**__, **developer_id**#(users))
     8225. **feedback** 
     83   (__**submission_id#(submission)**, description, **submission_type**, **created_at**, **created_by#(users)**) 
    6084
    61 26. **messages** (__**sent_at__**, **content**, __**sent_by#(users)**__, __**project_id#(channel)**__, __**channel_name#(channel)**__)
     8526. **report** 
     86   (__**id#(submission)**, **thread_id#(topic_thread)**__, **for_user_id#(users)**__) 
     87
     8827. **channel** 
     89   (__**name**, __**project_id#(project_thread)**__, description, **project_resource_id#(project_resource)**, **developer_id#(developer)**) 
     90
     9128. **messages** 
     92   (__**channel_name#(channel)**__, __**project_id#(project_thread)**__, __**sent_at**__, __**sent_by#(developer)**__, **content**) 
     93
    6294
    6395== DDL скрипта за бришење и креирање на табелите