Add files from GitHub.
This commit is contained in:
42
docs/database/database_description.md
Normal file
42
docs/database/database_description.md
Normal file
@@ -0,0 +1,42 @@
|
||||
Table instances:
|
||||
|
||||
A. id - Python int - SQLite INTEGER - ID der Instanz
|
||||
B. owner - Python str - SQLite TEXT - wer besitzt die Instanz?
|
||||
C. calculated_demand - Python bytes (UTF-8 encoding) - SQLite BLOB - die vorberechnete Liste ueber
|
||||
den Energiebedarf jeder Instanz
|
||||
im json Format
|
||||
Beispiel:
|
||||
{
|
||||
"energy_demands":[
|
||||
{
|
||||
"date": "01.01.2024",
|
||||
"energy_demand_in_watts": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
D. number_of_persons_in_household - Python int - SQLite INTEGER - Anzahl Personen in Haushalt
|
||||
E. fulfilled_demand - Python bytes (UTF-8 encoding) - SQLite BLOB - der tatsaechlich gedeckte Energiebedarf
|
||||
am jeweiligen Datum im json Format
|
||||
Beispiel:
|
||||
{
|
||||
"scored_demand":[
|
||||
{
|
||||
"date": "01.01.2024",
|
||||
"scored_energy_demand_in_watts": 3,
|
||||
"busy_method_used":[
|
||||
"hpc"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
F. status - Python str - SQLite TEXT - Status der Instanz, "offline", "online", "error"
|
||||
G. heater_busy_methods - Python bytes (UTF-8 encoding) - SQLite BLOB - Methoden, welche die Instanz ausfuehrt im json Format
|
||||
Beispiel:
|
||||
{
|
||||
"busy_methods_active":[
|
||||
"hpc"
|
||||
]
|
||||
}
|
||||
|
||||
Table application:
|
||||
A. state - Python constants.State - SQLite TEXT - Zustand der Anwendung, Running oder Stopped
|
||||
Reference in New Issue
Block a user