跳转到内容
Supastack
CN
主题
买家登录获取 Supastack

免费开发者工具

免费 Supabase RLS 策略生成器

GitHub 源码

配置安全策略

访问权限预设

已登录用户只能创建、读取、更新和删除属于自己的行。

覆盖的操作类型

生成的 SQL

5 条语句
-- Row-level security for "public"."posts", preset: owner only.
-- Generated by the free supastack RLS tool: supastack.dev/tools/supabase-rls-generator
-- Postgres ORs policies together: drop any existing policies on this table before re-applying.
-- Assumes "public"."posts"."user_id" references auth.users(id).
 
alter table "public"."posts" enable row level security;
 
-- Select: signed-in users can only read rows they own.
create policy "posts_select_owner"
on "public"."posts"
for select to authenticated
using (auth.uid() = "posts"."user_id");
 
-- Insert: new rows must set "posts"."user_id" to the caller.
create policy "posts_insert_owner"
on "public"."posts"
for insert to authenticated
with check (auth.uid() = "posts"."user_id");
 
-- Update: only the owner can change a row, ownership can't be moved.
create policy "posts_update_owner"
on "public"."posts"
for update to authenticated
using (auth.uid() = "posts"."user_id")
with check (auth.uid() = "posts"."user_id");
 
-- Delete: only the owner can remove a row.
create policy "posts_delete_owner"
on "public"."posts"
for delete to authenticated
using (auth.uid() = "posts"."user_id");

深受全球创始人的喜爱。

我做市场营销,不是全职开发者。Supastack 把登录、工作区、计费、BYOK AI、邮件和主题都放进了同一个代码库。有了 AGENTS.md 和提示词,我不用先摸透整个项目,就能用 Claude Code 开始做产品。开发 AI SaaS 的扎实起点。
bynikojulius profile photobynikojulius
pnpm verify:local、主题包和区块库帮我很快给整个营销站换了风格。这个框架用起来很顺手。
Universe profile photoUniverse
做 Skin Profile 时,我能直接看到登录、计费、任务和 AI 路由是怎么配置的。功能很完整。
Ka-Chun-Ma profile photoKa-Chun-Ma

也许是你?

开始构建
我在做砺行,一款本地优先的日常反思应用。我在 Windows 上跑通了整个 monorepo,并把四种做法用到自己的应用里:配置、安全的许可证存储、权益管理和付费墙。这些改动放在功能开关后,通过了 26 个测试。我现在还用不上登录和计费,但等砺行需要后端时,已经有现成的实现可以参考。
PengGangjie profile photoPengGangjie
我现在用 Supastack 开发应用后台。要是一开始就用上它。应该还能省不少事。
OpenMargin24 profile photoOpenMargin24
我深入读完了整个代码库,还跑通了 Rust 测试。自带桌面端的模板很少见,所以 Supastack 简直像梦想成真。边界写得清清楚楚,代码也严格遵守,桌面端从不照搬 Web 端的界面和登录。
Raven S. profile photoRaven S.
我不太懂编程,但多亏了 Supastack 详尽的文档,我学到了很多。我正在为我的网站 cutviee.com 搭建一个简单的落地页,尽管一开始我完全不懂代码!它对新手真的非常友好。
Cut Viee profile photoCut Viee

下一个产品,从这里开始。

一次付费,持续打造盈利的产品。