Skip to content

Instantly share code, notes, and snippets.

@gruberdev
Last active November 30, 2021 14:15
Show Gist options
  • Save gruberdev/a1f53509955ea93a0313465df994b13e to your computer and use it in GitHub Desktop.
Save gruberdev/a1f53509955ea93a0313465df994b13e to your computer and use it in GitHub Desktop.
System Entity
graph TD
subgraph Entities
   Group1[Group 1]
   Group2[Group 2]
   subgraph Groups
       user1[User 1] -- is a part of --> Group1
       user2[User 2] -- is a part of --> Group1
       user3[User 3] -- is a part of --> Group2
   end
   Group1 -- owns --> Entity1
   Group1 -- owns --> Entity2
   Group2 -- owns --> Entity3
   Group2 -- owns --> domain1
   Group1 -- owns --> domain2
   style Group1 stroke:#333,stroke-width:3px
   style Group2 stroke:#333,stroke-width:3px
   Entity1 -- is a part of --> domain1
   Entity2 -- is a part of --> domain1
   Entity3 -- is a part of --> domain2
   subgraph Domains
       domain1[Domain 1]
       domain2[Domain 2]
       style domain1 stroke:#333,stroke-width:5px
       style domain2 stroke:#333,stroke-width:5px
       subgraph Example System 1
        style Entity1 stroke:#333,stroke-width:3px
        style Entity2 stroke:#333,stroke-width:3px
        style Entity3 stroke:#333,stroke-width:3px
        Entity1[Entity 1] -. can be a .-> Component1[Component]
        Component1 -. it can be a .-> service1[Service]
        Component1 -. it can be a  .-> website1[Wesite]
        Component1 -. it can be a .-> library1[Library]
        subgraph Types
         service1
         website1
         library1
        end
        Entity1[Entity 1] -. can be an .-> API1[API]
        Entity1[Entity 1] -. can be a .-> Resource1[Resource]
        API1 --connects to--> Entity3
        Resource1-- operates an-->Entity3
        Entity3[Entity 3] -. can be a .-> Component3[Component]
        Entity3[Entity 3] -. can be an .-> API3[API]
        Entity3[Entity 3] -. can be a .-> Resource3[Resource]
        Component3 -. it can be a .-> service3[Service]
        Component3 -. it can be a  .-> website3[Wesite]
        Component3-. it can be a .-> library3[Library]
        subgraph Types 3
           service3
           website3
           library3
         end
       end
       subgraph Example System 2
         Entity2[Entity 2] -. can be a .-> Component2[Component]
         Entity2[Entity 2] -. can be an .-> API2[API]
         Entity2[Entity 2] -. can be a .-> Resource2[Resource]
         Component2 -. it can be a .-> service2[Service]
         Component2 -. it can be a  .-> website2[Wesite]
         Component2 -. it can be a .-> library2[Library]
        subgraph Types 2
           service2
           website2
           library2
         end
       end
   end
end
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment