p1-logger/migrations/00001_p1.sql

33 lines
683 B
MySQL
Raw Normal View History

2024-07-26 21:42:29 +02:00
-- +goose Up
-- +goose StatementBegin
CREATE TABLE IF NOT EXISTS p1 (
timestamp TIMESTAMPTZ,
delivered_tariff1 INT,
delivered_tariff2 INT,
returned_tariff1 INT,
returned_tariff2 INT,
delivery_all INT,
returning_all INT,
failures INT,
long_failures INT,
sags_l1 INT,
sags_l2 INT,
sags_l3 INT,
swells_l1 INT,
swells_l2 INT,
swells_l3 INT,
gas INT,
voltage_l1 INT,
voltage_l2 INT,
voltage_l3 INT,
current_l1 INT,
current_l2 INT,
current_l3 INT,
delivery_l1 INT,
delivery_l2 INT,
delivery_l3 INT,
returning_l1 INT,
returning_l2 INT,
returning_l3 INT
);
-- +goose StatementEnd