Add production and consumption table migrations. Fix sync-month.sh to use Linux date syntax and default to port 3030. Read Eloverblik token from ELOVERBLIK_TOKEN env var with .token file fallback. Mount .token into Docker container. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 lines
164 B
SQL
7 lines
164 B
SQL
CREATE TABLE consumption (
|
|
time_start TIMESTAMPTZ NOT NULL,
|
|
hour INTEGER NOT NULL,
|
|
kwh DOUBLE PRECISION,
|
|
PRIMARY KEY (time_start, hour)
|
|
);
|