- event_id serial PRIMARY KEY, -- Event identifier
- person_id integer REFERENCES persons, -- person responsible for event
- event_type text REFERENCES event_types NOT NULL DEFAULT 'Unknown', -- Event type
- object_type text REFERENCES object_types NOT NULL DEFAULT 'Unknown', -- Object type associated with event
- fault_code integer NOT NULL DEFAULT 0, -- did this event result in error
- call text NOT NULL, -- call responsible for this event
- runtime float, -- Event run time
-
- -- Timestamps
- time timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP
-
+ event_id serial PRIMARY KEY, -- Event identifier
+ person_id integer REFERENCES persons, -- Person responsible for event, if any
+ node_id integer REFERENCES nodes, -- Node responsible for event, if any
+ event_type text REFERENCES event_types NOT NULL DEFAULT 'Unknown', -- Event type
+ object_type text REFERENCES object_types NOT NULL DEFAULT 'Unknown', -- Object type associated with event
+ fault_code integer NOT NULL DEFAULT 0, -- Did this event result in error
+ call text NOT NULL, -- Call responsible for this event
+ runtime float, -- Event run time
+ time timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP -- Event timestamp