CREATE TABLE compiled_rides (
    history_event_id BIGSERIAL PRIMARY KEY,
    history_user_id text NOT NULL,
    history_originator_id text,
    history_action text NOT NULL,
    history_timestamp integer NOT NULL,
    history_comment text,

    session_id TEXT NOT NULL,
    object_id uuid,
    price integer NOT NULL,
    duration integer NOT NULL,
    start integer NOT NULL,
    finish integer NOT NULL,
    meta JSON,
    meta_proto TEXT,
    hard_proto TEXT
)
