Update README and seed.sql for webhooks and admin panel

The README file was updated to include more specific instructions for adding database webhooks through Supabase Studio. Additional information was also added regarding setting up the Super Admin panel. In the seed.sql file, the trigger name was corrected.
This commit is contained in:
giancarlo
2024-04-17 17:43:29 +08:00
parent a188ca92e1
commit c2bccef0db
2 changed files with 40 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ execute function "supabase_functions"."http_request"(
-- this webhook will be triggered after a delete on the subscriptions table
-- which should happen when a user deletes their account (and all their subscriptions)
create trigger "account_delete" after delete
create trigger "subscriptions_delete" after delete
on "public"."subscriptions" for each row
execute function "supabase_functions"."http_request"(
'http://host.docker.internal:3000/api/db/webhook',