Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

api.eventlogs_view

Description

Event logs view

Table Definition
CREATE VIEW eventlogs_view AS (
 SELECT id,
    channel,
    payload,
    ref_id,
    stored,
    processed
   FROM process_queue pq
  WHERE ((processed IS NOT NULL) AND (channel <> 'new_stay'::text) AND (channel <> 'pre_logbook'::text) AND (channel <> 'post_logbook'::text) AND ((ref_id = current_setting('user.id'::text, false)) OR (ref_id = current_setting('vessel.id'::text, true))))
  ORDER BY id DESC
)

Columns

NameTypeDefaultNullable
channeltexttrue
idintegertrue
payloadtexttrue
processedtimestamp with time zonetrue
ref_idtexttrue
storedtimestamp with time zonetrue

Referenced Tables

NameColumnsCommentType
public.process_queue6process queue for async jobBASE TABLE

Relations

erDiagram


"api.eventlogs_view" {
  text channel ""
  integer id ""
  text payload ""
  timestamp_with_time_zone processed ""
  text ref_id ""
  timestamp_with_time_zone stored ""
}

Generated by tbls