mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 09:59:13 -05:00
10 lines
251 B
SQL
10 lines
251 B
SQL
IF NOT EXISTS(SELECT 1 FROM sys.tables WHERE name = 'Status')
|
|
CREATE TABLE Status
|
|
(
|
|
Timestamp datetimeoffset NOT NULL
|
|
CONSTRAINT status_pk
|
|
PRIMARY KEY,
|
|
Generation int NOT NULL,
|
|
Consumption int NOT NULL
|
|
);
|