github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/db/scripts/init_event_db.sql (about) 1 CREATE TYPE level_t AS ENUM ('emerg', 'alert', 'crit', 'err', 'warning', 'notice', 'info', 'debug'); 2 3 CREATE TABLE public.event ( 4 id BIGSERIAL PRIMARY KEY, 5 received_at timestamp WITH TIME ZONE default CURRENT_TIMESTAMP, 6 ip_address inet, 7 source varchar(32) not null, 8 component varchar(32), 9 level level_t not null, 10 event_id varchar(32) not null, 11 description text, 12 data bytea, 13 json jsonb 14 );