broke: a private money app that runs on your own accounts and your own AI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
minimus7andClaude Opus 5.5 committed 2026-11-04 10:53:45 -06:00
commit f550865e93
359 files changed
+34290

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
-- The OpenRouter key each user connects (Connect your AI). Like plaid_items.access_token, signed-in users can't read it:
-- no policies and no grants, so only the server's secret key can.
create table public.ai_keys (
user_id uuid primary key references auth.users on delete cascade,
openrouter_key text not null,
updated_at timestamptz not null default now()
);
alter table public.ai_keys enable row level security;
revoke all on public.ai_keys from anon, authenticated;
grant all on public.ai_keys to service_role;