Use event_id as the main sorting key for actions
This makes actions queries stable and opens the avenue for much more efficient pagination implementation.
Also, clean up and reorganize types and functions in our DB schema.
This makes actions queries stable and opens the avenue for much more efficient pagination implementation.
Also, clean up and reorganize types and functions in our DB schema.