CREATE TABLE trust_products_history (
    history_event_id SERIAL PRIMARY KEY,
    history_user_id uuid NOT NULL,
    history_originator_id text,
    history_action text NOT NULL,
    history_timestamp integer NOT NULL,
    history_comment text,

    billing_type text NOT NULL,
    trust_service text DEFAULT '',
    fiscal_title text NOT NULL,
    fiscal_nds text DEFAULT 'nds_none',
    trust_product integer NOT NULL,
    revision integer NOT NULL,
    trust_service_id integer,
    cashback_type character varying(20),
    terminal text
);
