car values
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-12-15 17:42:36 +01:00
parent 2a4452e67f
commit d499d451ba
3 changed files with 69 additions and 4 deletions

View File

@@ -12,3 +12,16 @@ CREATE TABLE pv_energy_by_month (
);
CREATE TABLE car_energy_by_month (
id serial NOT NULL PRIMARY KEY,
month integer NOT NULL,
year integer NOT NULL,
created_at timestamp NOT NULL DEFAULT now(),
last_changed timestamp,
update_counter integer NOT NULL DEFAULT 0,
baseline_energy real NOT NULL,
current_energy real NOT NULL DEFAULT 0.0,
CONSTRAINT car_energy_by_month__month_year_unique UNIQUE(month, year)
);