Record last time an environmental device reported

This commit is contained in:
2024-05-28 13:53:02 -04:00
parent d69d69bf68
commit b1a9230f91
12 changed files with 181 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
INSERT INTO device(
name,
last_updated
)
VALUES (
@Name,
@LastUpdated
)
ON CONFLICT (name)
DO UPDATE
SET last_updated = EXCLUDED.last_updated