Skip to content

Commit

Permalink
erd do monitor-app com user
Browse files Browse the repository at this point in the history
  • Loading branch information
luizchaves committed Mar 3, 2024
1 parent 52a4619 commit 3f44dad
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
@startuml
hide circle
scale 1.5
skinparam linetype ortho
skinparam monochrome true
left to right direction

entity "Tag" as tag {
id
--
name
}

entity "Host" as host {
id
--
name
address
}

entity "Ping" as ping {
id
--
createAt
}

entity "Stats" as stats {
id
--
transmitted
received
time
}

entity "Icmp" as icmp {
id
--
seq
ttl
time
}

entity "User" as user {
id
--
name
email
password
}

tag }o--o{ host
host ||--|{ ping
ping ||--o| stats
ping ||-upo{ icmp
user ||-upo{ ping
@enduml
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
@startuml
hide circle
scale 1.5
skinparam linetype ortho
skinparam monochrome true
left to right direction

entity "Tag" as tag {
*id : int
--
name : varchar(100)
}

entity "TagsOnHosts" as tp {
*id : int
--
*tagId : int <<FK>>
*hostId : int <<FK>>
}

entity "Host" as host {
*id : int
--
name : varchar(100)
address : varchar(100)
}

entity "Ping" as ping {
*id : int
*hostId : int <<FK>>
*statsId : int <<FK>>
*userId : int <<FK>>
--
createAt : datetime
}

entity "Stats" as stats {
*id : int
--
transmitted : int
received : int
time : float
}

entity "Icmp" as icmp {
*id : int
*ping_id : int <<FK>>
--
seq : int
ttl : int
time : float
}

entity "User" as user {
*id : int
--
name: varchar(100)
email: varchar(100)
password: varchar(30)
}

tag ||-upo{ tp
tp }o--|| host
host ||--|{ ping
ping ||--o| stats
ping ||-upo{ icmp
user ||-upo{ ping
@enduml

0 comments on commit 3f44dad

Please sign in to comment.