From 4756332e5cc61bfcdbbc8d9ab60b73fd0f84fc72 Mon Sep 17 00:00:00 2001 From: Klagarge Date: Thu, 4 Jun 2026 00:45:10 +0200 Subject: [PATCH] docs(report): add source files of database diagram --- report/main/database/class-db.uxf | 42 +++++++++++++++++++++++++++++++ report/main/database/physic.uxf | 18 +++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 report/main/database/class-db.uxf create mode 100644 report/main/database/physic.uxf diff --git a/report/main/database/class-db.uxf b/report/main/database/class-db.uxf new file mode 100644 index 0000000..5619131 --- /dev/null +++ b/report/main/database/class-db.uxf @@ -0,0 +1,42 @@ +10Space for diagram notesUMLClass380310220130mqttGateway +-- + +-- +NewMqttGateway(): mqttGateway +SendData(dp: DataPoint) +Disconnect() +Subscribe(topic: string) +Unsubscribe() +UMLClass30380210160DataPoint +-- +measurement: *Measurement[T] +tags: []Topic +values: T +timestamp: time.Time +-- +MeasurementName(): string +Tags(): []Topic +PayloadAsAny(): map[string]any +Timestamp(): time.Time +UMLClass380480220130influxGateway +-- + +-- +NewInfluxGateway(): *influxGateway +AddDatapoint(dp: DataPoint) +Flush() +Close() +Query(q: string)Relation230370170100lt=<..10;80;80;80;80;10;150;10Relation230470170100lt=<..10;10;80;10;80;80;150;80UMLClass81042090150main +-- + +-- +UMLClass990420140150restGateway +-- + +-- +setupRoutes() +getRooms() +getRoomCurrent() +getRoomHistory() +getBattery() +getExportCSV()Relation590370240120lt=<<<<-220;100;100;100;100;10;10;10Relation59050024070lt=<<<<-220;10;100;10;100;50;10;50Relation89047012030lt=<<<<-10;10;100;10 \ No newline at end of file diff --git a/report/main/database/physic.uxf b/report/main/database/physic.uxf new file mode 100644 index 0000000..0aed025 --- /dev/null +++ b/report/main/database/physic.uxf @@ -0,0 +1,18 @@ +10UMLDeployment051011050<<Node>> +Thingy52UMLDeployment23050011050<<Gateway>> +RaspberyPiUMLDeployment450350510220ServerUMLGeneric47041010040<<Broker MQTT>> +RabbitMQUMLGeneric67041010040<<Database>> +InfluxDB3UMLGeneric57048010040<<API DB>> +Go serviceRelation5104408080lt=<-60;60;10;60;10;10Relation66044010090lt=->80;10;80;70;10;70Relation6604407070lt=->10;50;50;50;50;10Relation280410110110lt=)- +m1= +80;20;10;20;10;90Relation37041012050lt=-() +m2=MQTT +100;20;10;20Relation610510150130lt=-() +m2=REST +10;10;10;100;130;100Relation1005109050lt=-() +m2=BLE +10;20;70;20Relation1705108050lt=)- +20;20;60;20UMLDeployment81047011050<<Dashboard>> +AngularRelation740510140130lt=)- +m1= +20;100;120;100;120;10 \ No newline at end of file