17 lines
No EOL
421 B
SQL
17 lines
No EOL
421 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE TABLE IF NOT EXISTS opendtu_events (
|
|
-- id SERIAL PRIMARY KEY,
|
|
timestamp TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
|
|
inverter_serial TEXT,
|
|
message_id INT,
|
|
message TEXT,
|
|
start_time INT,
|
|
end_time INT
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS opendtu_events_timestamp_idx ON opendtu_events (timestamp);
|
|
-- +goose StatementEnd
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
-- +goose StatementEnd |