acknowledgednotification


Description

This table keeps track of notifications for a particular device_id(s) acknowledged by a user. If there are multiple maps for a user, these devices/nodes will be marked acknowledged across all the maps. If no map exists for a user, this info will be persisted in this table and sent back to UI on getMapNodes. It is parent table that is partitioned over zone schema

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id serial 10 nextval('event.acknowledgednotification_id_seq'::regclass)

unique identifier for the acknowledgednotification record

notification_id int4 10 null

Id of the notification that is acknowledged.

zone_id int4 10 null

Id of the zone in which the notification is acknowledged

acknowledged bool 1 true

Boolean indicating whether the notification is acknowledged or not. The way code works is that we would only see entry in this table where this flag is set to true.

user_id int4 10 null
user.id fk_acknowledgeddevices_user C

Id of the user that acknowledged the notification.

time timestamp 29,6 now()

Timestamp when this record was inserted/updated. Timestamp is based on Spectre's configured timezone.

Table contained 0 rows

Relationships