mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-19 09:35:38 -05:00
Add power database support
This commit is contained in:
9
Power/Service/Data/Resources/Schema.sql
Normal file
9
Power/Service/Data/Resources/Schema.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
);
|
||||
Reference in New Issue
Block a user