-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatahub_er_model copy.puml
50 lines (44 loc) · 1.02 KB
/
datahub_er_model copy.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@startuml
entity "Station" as Station {
+ id : Integer [PK]
+ device : String [unique, index]
+ firmware : String
+ apikey : String
+ last_active : DateTime
+ source : Integer
--
+ current_campaign_id : Integer [FK]
}
entity "Measurement" as Measurement {
+ id : Integer [PK]
+ time_received : DateTime
+ time_measured : DateTime
+ sensor_model : Integer
--
+ station_id : Integer [FK]
+ room_id: Integer [FK]
+ campaign_id : Integer [FK]
}
entity "Values" as Values {
+ id : Integer [PK]
+ dimension : Integer
+ value : Float
--
+ measurement_id : Integer [FK]
}
entity "StationStatus" as StationStatus {
+ id : Integer [PK]
+ station_id : Integer [FK]
+ timestamp : DateTime
+ level : Integer
+ message : String
}
entity "Room" as room {
+ id: Integer [PK]
+ name: String
}
Station ||--o{ Measurement : "records"
Measurement ||--o{ Values : "has"
Station ||--o{ StationStatus : "tracks"
room ||--o{ Measurement : "has"
@enduml