Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

chore(db): regenerate the schema after applying the cleanup and MCP migrations

spacesdrivec55d530df238
diff --git a/supabase/schemas/.pgdelta-export.json b/supabase/schemas/.pgdelta-export.json
index ad827ca..8e091be 100644
--- a/supabase/schemas/.pgdelta-export.json
+++ b/supabase/schemas/.pgdelta-export.json
@@ -15,6 +15,8 @@
"public/tables/automation_followups.sql",
"public/tables/automation_public_replies.sql",
"public/tables/automation_rules.sql",
+ "public/tables/mcp_access_tokens.sql",
+ "public/tables/mcp_client_grants.sql",
"public/tables/scheduled_posts.sql",
"public/tables/settings.sql",
"public/tables/tracked_posts.sql",
@@ -84,6 +86,8 @@
"public/tables/automation_followups.sql",
"public/tables/automation_public_replies.sql",
"public/tables/automation_rules.sql",
+ "public/tables/mcp_access_tokens.sql",
+ "public/tables/mcp_client_grants.sql",
"public/tables/scheduled_posts.sql",
"public/tables/settings.sql",
"public/tables/tracked_posts.sql"
diff --git a/supabase/schemas/public/tables/audit_events.sql b/supabase/schemas/public/tables/audit_events.sql
index 4644b54..a73959f 100644
--- a/supabase/schemas/public/tables/audit_events.sql
+++ b/supabase/schemas/public/tables/audit_events.sql
@@ -11,8 +11,9 @@ CREATE TABLE "public"."audit_events" (
CONSTRAINT "audit_events_details_check" CHECK ((jsonb_typeof(details) = 'object'::text)),
CONSTRAINT "audit_events_pkey" PRIMARY KEY (id),
CONSTRAINT "audit_events_subject_type_check"
- CHECK ((subject_type = ANY (ARRAY['account'::text, 'automation_rule'::text, 'automation_account'::text, 'automation_comment'::text, 'mcp_access_token'::text, 'mcp_client'::text, 'scheduled_post'::text,
- 'tracked_post'::text, 'media_asset'::text, 'youtube_connection'::text, 'youtube_upload'::text, 'settings'::text]))),
+ CHECK
+ ((subject_type = ANY (ARRAY['account'::text, 'automation_rule'::text, 'automation_account'::text, 'automation_comment'::text, 'mcp_access_token'::text, 'mcp_client'::text,
+ 'scheduled_post'::text, 'tracked_post'::text, 'media_asset'::text, 'youtube_connection'::text, 'youtube_upload'::text, 'settings'::text]))),
CONSTRAINT "audit_events_user_id_fkey" FOREIGN KEY (user_id) REFERENCES auth.users(id) ON DELETE CASCADE
);