postgrest-baas-builder

Installation
SKILL.md

前置

載入這個 skill 前,先確認已載入 db-engineering 通用 DB 鐵則(migration 紀律、稽核 log、軟刪除、效能、完整性、環境分離)都在 db-engineering 裡,這裡只處理 BaaS 專用的部分。


BaaS 專用鐵則

1. 一律啟用 RLS

public schema 下每一張新表,建立時就 enable row level security,並補上明確 policy。沒有例外、不是選項。

Policy 寫法規範見 references/rls.md

2. Auth 用 BaaS 內建

認證一律走 auth.users(Supabase)或平台內建 auth(InsForge),不要自己另開一張 users 表來做帳密。要存額外的使用者資料時,才開一張 profiles 之類的擴充表,以 auth.users.id 為外鍵。

Auth 串接細節見 references/auth.md

Installs
32
First Seen
May 31, 2026
postgrest-baas-builder — timlai666/skills