Adicionado o Diagrama Relacional #161
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Este é o diagrama completo do projeto com uma visualização de todas as tabelas em modelo relacional
O GitHub já vem com suporte para mermaid nativamente (como você pode ver abaixo) então ao clicar no arquivo o visitante verá um readme com as tabelas do banco de dados de forma ilustrativa, tal ao qual é a proposta de um diagrama.
no VSCode para visualizar o Diagrama você precisa de uma extensão: Markdown Preview Mermaid Support
ou pode copiar o conteúdo do arquivo e visitar o site mermaid.live e colar lá para visualizar o modelo.
erDiagram User { string email string encrypted_password string name string family_name string registration_number integer role integer verification_status string confirmation_token datetime confirmed_at string phone_number string id_photo string address_proof } UserAddress { string street integer number string district string city string state string zip_code integer user_id } Event { string name integer user_id integer event_type integer participants_limit string url integer status datetime discarded_at string code datetime start_date datetime end_date integer event_place_id } EventPlace { string name string street string number string neighborhood string city string zip_code string state integer user_id } EventPlaceRecommendation { string name string full_address string phone integer event_place_id } Schedule { datetime date integer event_id } ScheduleItem { string name string description datetime start_time datetime end_time string responsible_name string responsible_email integer schedule_type integer schedule_id string code datetime discarded_at } Speaker { string name string email string code } TicketBatch { string name integer tickets_limit date start_date date end_date decimal ticket_price integer discount_option integer event_id string code } Category { string name } Keyword { string value } CategoryKeyword { integer category_id integer keyword_id } EventCategory { integer event_id integer category_id } Announcement { string title integer user_id integer event_id string code } Verification { integer user_id integer reviewed_by_id integer status text comment } User ||--o{ Event : "has many" User ||--o| UserAddress : "has one" User ||--o{ EventPlace : "has many" User ||--o{ Verification : "has many" User ||--o{ Announcement : "has many" Event ||--o{ Announcement : "has many" Event ||--o{ Schedule : "has many" Event ||--o{ TicketBatch : "has many" Event ||--o{ EventCategory : "has many" Event }|--|| EventPlace : "belongs to" EventPlace ||--o{ EventPlaceRecommendation : "has many" EventPlace }|--|| User : "belongs to" Schedule ||--o{ ScheduleItem : "has many" ScheduleItem }|--o| Speaker : "belongs to" Speaker ||--o{ ScheduleItem : "has many" Category ||--o{ EventCategory : "has many" Category ||--o{ CategoryKeyword : "has many" Keyword ||--o{ CategoryKeyword : "has many" Verification }|--|| User : "belongs to" Verification }|--o| User : "reviewed by" CategoryKeyword }|--|| Category : "belongs to" CategoryKeyword }|--|| Keyword : "belongs to" EventCategory }|--|| Event : "belongs to" EventCategory }|--|| Category : "belongs to"