These examples demonstrate how to run basic CRUD operations on a table in a Supabase database using Trigger.dev.
@supabase/supabase-js libraryinsertuser_subscriptions.user_subscriptions table, create a new column:
user_id, with the data type: textuser_subscriptions table with the user_id set to user_12345.
@supabase/supabase-js libraryinsertupdateuser_subscriptions (if you haven’t already)
user_subscriptions table, create these columns (if they don’t already exist):
user_id, with the data type: textplan, with the data type: textupdated_at, with the data type: timestamptzuser_subscriptions table with the user_id set to user_12345, the plan set to pro, and the updated_at timestamp updated to the current time.