Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

315 B
Raw Blame
DROP VIEW IF EXISTS v_view_log;


CREATE OR REPLACE VIEW v_view_log AS
  (SELECT id, timestamp, coalesce(user_id, 0) AS user_id,
                         model AS entity_type,
                         model_id AS entity_id,
                         model || '_' || model_id AS entity_qualified_id
   FROM view_log)