Hey,
Apologies for the confusions here! This was an old structure that we went with, however with feedback we realised this was not the best way to utilise Supabase's capabilities.
Hence, now all data (daily, sleep, activity, etc.) payloads are stored in terra_data_payloads with a payload_id.json format. This payload_id is inserted into the database table terra_data_payloads
. User auth's are directly written into the terra_users
table allowing you to easily query and check what users are connected.
Hope this clears it up!