relayer/docs/SQL Schema.md
This document describes the rationale behind SQL Scheme for the relayer.
For Public / User Decryption Requests
M: Store Internal Public/User Decryption Indexer ID to Public / User Decrypt Indexer Table.
M: Store Internal Public/User Decryption Indexer ID to Public / User Decrypt Requests Table.
M: Store public/user decrypt result by Public / User Decrypt Indexer Table
**H: ** Retrieve User Decrypt Indexer ID by Gateway User Decrypt ID from Indexer Table.
H: Store user decrypt share by User Decrypt Indexer ID to User Decrypt Shares Table
H: Retrieve Internal Public/User Decryption Indexer ID by External Request ID
H: Retrieve Result by Internal Public/User Decryption Indexer ID.
Tables
User Decrypt Requests
UUID V4UUID V7Numberqueued / processing / tx_in_flight / receipt_received / completed / timed_out / failureUser Decrypt Shares
NumberPublic Decrypt Requests\
UUID V4UUID V7Numberqueued / processing / tx_in_flight / receipt_received / completed / timed_out / failureInput Proof Requests
UUID v4UUID v7Numberqueued / processing / tx_in_flight / receipt_received / completed / timed_out / failure