% In this table record we hold the state of a rest resource. A rest resource is created by the requestor and contains
% an order, which is processed at the next possible opportunity. The requestor can use the resource to monitor the
% status of the order he has requested. When processing is done, it is the responsibility f the requestor to request
% the deletion of the rest resource.
-record(rest, {
    % identifier of the related REST resource
    resourceId :: binary(),
    % an atom describing the facility ("download", "psmp", "eco", "edr" or "euicc")
    facility :: atom(),
    % EID of the related eUICC
    eidValue :: binary(),
    % order parameters received on creation of the related REST resource
    order :: tuple(),
    % an atom describing the global processing state of the order ("new", "work", or "done")
    status :: atom(),
    % timestamp of the last state change
    timestamp :: integer(),
    % outcome of the requested order
    outcome :: any(),
    % elang term containing debug information (presented as binary string to the requestor)
    debuginfo :: any()
}).
