dg:Diagrama DL03t main
Diagrama DL03t_main
Tarefas: Descobrir como fazer funcionar os gráficos abaixo. |
Texto original de: https://github.com/digital-guard/preserv/blob/main/docs/pt/specUML.md
Diagramas UML de classes. Conforme convenções semânticas UML e detalhes visuais Mermaid.
Donated_PackTpl e Jurisdiction
classDiagram Jurisdiction *-- "0..1" Jurisdiction_geom Donated_PackTpl "0..1" --> Jurisdiction: has scope Donated_PackTpl "*" --> Donor: has Donor "0..1" ..> Jurisdiction: has agg scope class Jurisdiction { osm_id bigint } class Jurisdiction_geom { osm_id bigint } class Donor { id integer scope_osm_id bigint } class Donated_PackTpl { id integer scope_osm_id bigint donor_id integer }
Donated_PackTpl e seus componentes
classDiagram Donated_PackTpl "*" --> Donor: has Donated_PackFileVers "*" --* Donated_PackTpl: (pack_id) class Donor { id integer country_id integer local_serial integer scope_osm_id bigint -getFromGit() -input_donor() } class Donated_PackTpl { id bigint donor_id integer pk_count int scope_osm_id bigint user_resp text -getFromGit() -input_donated_PackTpl() } class Donated_PackFileVers { id bigint pack_id bigint user_resp text -getFromGit() -input_donated_PackFileVers() }
Implementação
Os relacionamentos entre as classes foram implementados através de tabelas e chaves do Modelo Relacional (SQL), que ficam mais evidentes em diagramas clássicos de Entidade-Relacionamento do tipo pé-de-galinha.
erDiagram jurisdiction |o--o| jurisdiction : "" jurisdiction ||--o| jurisdiction_geom : "" donor }o--|| jurisdiction : "" donated_PackTpl }o--|| donor : "" donated_PackTpl }o--|| auth_user : "" donated_PackFileVers }|--|| donated_PackTpl : "" donated_PackFileVers }o--|| auth_user : "" donated_PackComponent }|--|| donated_PackFileVers : "" donated_PackComponent }o--|| feature_type : "" donated_PackComponent_not_approved }|--|| donated_PackFileVers : "" donated_PackComponent_not_approved }o--|| feature_type : "" jurisdiction { bigint osm_id PK bigint parent_id FK } jurisdiction_geom { bigint osm_id PK } auth_user { text username PK } donor { integer id PK bigint scope_osm_id FK } donated_PackTpl { integer id PK int donor_id FK text user_resp FK } donated_PackFileVers { bigint id PK bigint pack_id FK text user_resp FK } feature_type { smallint ftid PK } donated_PackComponent { bigserial id PK bigint packvers_id FK smallint ftid PK } donated_PackComponent_not_approved { bigserial id PK bigint packvers_id FK smallint ftid PK }