Closed sirex closed 1 day ago
Ar savybė type
turi būti prie Administration
ar neturi?
t.y. ar turi būti kaip viršuj parodyta, ar taip?
classDiagram
class Administration {
+ id: integer [1..1]
+ name: string [1..1]
+ type: string [1..1]
}
class AdministrationType {
<<enumeration>>
country
municipality
}
Administration ..> "[1..1]" AdministrationType : type
Pagal UML, type
nereikia pridėti prie klasės, jis turėtu būti prie asociacijos (rodyklės).
bet mes tada "pametam" type
tipą. Bet jei taip tinka, tai galiu taip padaryti.
bet mes tada "pametam"
type
tipą. Bet jei taip tinka, tai galiu taip padaryti.
Nepametam, type
tipas yra ref
, kuris rodo į modelį su rodykle.
Bet type yra string
:
| | | | type | string | |
Aišku, gal šitoje situacijoje nėra būtina? O gal pridėti kažkur kitur?
Create a new Manifest, that can output model as mermaid diagram.
For example if we have following DSA table:
Command
spinta copy dsa.csv -o dsa.mmd
shoudl create adsa.mmd
file with following content:Which can be imported to draw.io and should be displayed as:
Documentation for Mermaid class diagrams: https://mermaid.js.org/syntax/classDiagram.html
Other relationships are:
dependency - relationship between two models that have references (
ref
orbackref
) to each other. It's indicated by this type of arrow:-->
inheritance - relationship between a model and it's base model. It's indicated by this type of arrow:
--|>