mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-03 06:22:32 -05:00
present signal days in API requests
I also enforced some invariants in the signals code, fixing a couple bugs. The signals code is more complex than I'd like, but hopefully is working now.
This commit is contained in:
@@ -412,6 +412,7 @@ create table user_session (
|
||||
|
||||
create index user_session_uid on user_session (user_id);
|
||||
|
||||
-- Timeseries with an enum value.
|
||||
create table signal (
|
||||
id integer primary key,
|
||||
|
||||
@@ -427,8 +428,8 @@ create table signal (
|
||||
-- uuids, such as "Elk security system watcher".
|
||||
type_uuid blob not null check (length(type_uuid) = 16),
|
||||
|
||||
-- a short human-readable description of the event to use in mouseovers or event
|
||||
-- lists, such as "driveway motion" or "front door open".
|
||||
-- a short human-readable description to use in mouseovers or event lists,
|
||||
-- such as "driveway motion" or "front door open".
|
||||
short_name not null,
|
||||
|
||||
unique (source_uuid, type_uuid)
|
||||
|
||||
Reference in New Issue
Block a user