Skip to content

Commit

Permalink
Merge pull request #105 from eclipse-tractusx/chore/update-mermaid-files
Browse files Browse the repository at this point in the history
chore: update mermaid files
  • Loading branch information
fabiodmota authored Feb 23, 2024
2 parents 6894267 + 407a30c commit 04b43b6
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 22 deletions.
99 changes: 99 additions & 0 deletions docs/mermaid/DataModel_v6.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
classDiagram
%%CompanyUser
class CompanyUser {
name: String+
email: String+
company: String+
}
%%Country
class Country {
country: String+
iso2: String
iso3: String
continent: String
}
%%DataSource
class DataSource {
dataSourceName: String+
type: Type+
yearPublished: Integer+
fileName: String
createDate: Instant
}
%%Range
class Range {
range: RangeType+
value: Integer+
description: String
}
%%File
class File {
fileName: String+
content: Blob
createDate: Instant
createdBy: String
version: Float
}

%%Region
class Region {
name: String+
type: Type
description: String
}
%% Report
class Report {
reportName: String
companyUserName: String
company: String
type: Type
createDate: Instant
createdBy: String
}
%% DataSourceValue
class DataSourceValue {
country: String+
iso2: String
iso3: String
continent: String
score: Float
}
%% RangeType
class RangeType {
enum
MAX()
Between()
Min()
}
%% Type
class Type {
enum
Global()
Company()
Custom()
}
%% RegionValue
class RegionValue {
country String
iso2 String
iso3 String
continent String
}
%% ReportValues
class ReportValues {
name String
value String
}

%% Relations
CompanyUser --o DataSource
CompanyUser --o Range
CompanyUser "1" --o "1..*" File
CompanyUser --o Region
DataSource --o DataSourceValue
DataSource ..o "1..*" Type
Range ..> RangeType
Region ..> Type
Region --o "1..*" RegionValue
Report ..> Type
Report --o "1..*" ReportValues
File renamed without changes.
22 changes: 0 additions & 22 deletions docs/mermaid/mermaid_edc_integration.md

This file was deleted.

20 changes: 20 additions & 0 deletions docs/mermaid/mermaid_edc_integration.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
graph TD
%% Scenario 1: Data Provision
subgraph S1["Scenario 1: Data Provision"]
OtherEDCSystems[("Other EDC Systems")]:::otherStyle -->|consumes data from| EDCProviderCR[("Country Risk EDC Provider")]:::providerStyle
EDCProviderCR -->|requests data from| CRApp[("Country Risk Application")]:::appStyle
end

%% Scenario 2: Data Consumption
subgraph S2["Scenario 2: Data Consumption"]
CRApp2[("Country Risk Application")]:::appStyle -->|consumes data from| EDCC[("Country Risk EDC Consumer")]:::consumerStyle
EDCC -->|requests data from| EDCGateProvider[("EDC Gate Provider")]:::gateStyle
EDCGateProvider -->|requests data from| BPDM[("BPDM Application")]:::bpdmStyle
end

classDef appStyle fill:#ffcccc,stroke:#333,stroke-width:4px;
classDef providerStyle fill:#ccffcc,stroke:#333,stroke-width:4px;
classDef consumerStyle fill:#ccccff,stroke:#333,stroke-width:4px;
classDef otherStyle fill:#fff0b3,stroke:#333,stroke-width:4px;
classDef gateStyle fill:#f0b3ff,stroke:#333,stroke-width:4px;
classDef bpdmStyle fill:#ffffb3,stroke:#333,stroke-width:4px;

0 comments on commit 04b43b6

Please sign in to comment.