📊 Supabase 数据库(热榜 + 表单收集)
1. 免费注册
supabase.com
2. SQL Editor 运行建表语句(见下方)
3. Project Settings → API → 复制 URL 和 anon key
CREATE TABLE query_logs (id uuid DEFAULT gen_random_uuid() PRIMARY KEY, question text, platform text, tier text, created_at timestamptz DEFAULT now());
CREATE TABLE custom_requests (id uuid DEFAULT gen_random_uuid() PRIMARY KEY, name text, wechat text, platform text, problem text, budget text, detail text, created_at timestamptz DEFAULT now());
ALTER TABLE query_logs ENABLE ROW LEVEL SECURITY;
ALTER TABLE custom_requests ENABLE ROW LEVEL SECURITY;
CREATE POLICY "allow_all" ON query_logs FOR ALL WITH CHECK (true) USING (true);
CREATE POLICY "allow_all" ON custom_requests FOR ALL WITH CHECK (true) USING (true);