跳轉到內容
Supastack
TW
主題
登入獲取終身訪問權

免費開發者工具

免費 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

下一個產品,從這裡開始。

一次付費,持續打造盈利的產品。