3 步接入:① 打开 supabase.com 用邮箱注册 → New Project;② 左侧 SQL Editor 粘贴下方 SQL 执行建表;③ Project Settings → API 复制 Project URL 与 anon public 密钥,填下面保存即可。之后手机/电脑打开本链接自动实时同步。
create table hotel_profit (
id integer primary key,
value jsonb not null,
updated_at timestamptz not null default now()
);
alter table hotel_profit enable row level security;
create policy "allow all" on hotel_profit for all using (true) with check (true);
alter publication supabase_realtime add table hotel_profit;