Flows category icon
App Builder
Intermediate

Supabase Schema Plan

Design a correct Supabase schema: tables, relationships, RLS policies, and verification queries.

5 steps15 verify checks45-75 minutesWorks with: emergent · chatgpt · claude · cursor
Start Guided Walkthrough

The Route

0/5 verified

Context Pack

Paste this first. It briefs the AI on requirements, constraints, and the Definition of Done before your first build prompt.

Context Pack
PROJECT CONTEXT:
I am building on Supabase and need a proper schema with relationships and row-level security.

GOAL:
Produce and apply a complete Supabase schema: tables, keys, RLS policies, and verified access rules.

REQUIREMENTS:
- Tables with correct types, keys, and relationships
- RLS enabled with policies per table
- Indexes for the query patterns
- Seed/verification queries proving the rules

CONSTRAINTS:
- Never leave RLS disabled on user data
- Policies must be tested from both allowed and denied perspectives

DEFINITION OF DONE:
- All tables created with relationships and constraints
- RLS policies enforce ownership correctly
- Denied access verifiably fails
- The app's queries work against the schema

COMMON FAILURES TO AVOID:
- RLS left off 'for now' and shipped that way
- Policies that allow everything (USING true) on private data
- Missing foreign keys causing orphaned rows
- Types chosen wrong (text for timestamps, no uuid defaults)

Paste this into your AI builder first. It teaches the AI what you want before you give it the build prompt.

Related routes

More App Builder flows that share ground with this one.

Flows category icon
App Builder

MongoDB Data Model Plan

Design a MongoDB data model that fits your queries: embed vs reference, indexes, and validation.

01List the access patterns
02Decide embed vs reference
03Plan the indexes

+2 more steps to Done

Best forbuilders who have shipped a basic app before

5 steps45-75 minutesIntermediate
Flows category icon
App Builder
Generated

Add Real-Time Presence Indicators to a Chat App with WebSockets

A step-by-step flow for implementing real-time online, offline, and typing presence in a chat app using WebSockets, including backend presence tracking, frontend updates, reconnect handling, and verification.

01Inspect the existing chat architecture and choose presence data flow
02Define the presence event contract and server-side state model
03Implement authenticated WebSocket connection handling on the server

+7 more steps to Done

Best forbuilders who have shipped a basic app before

10 steps60-120 minutesIntermediate
Flows category icon
App Builder
Generated

Add Team Invites to a SaaS App

Build a real team invitation system for a SaaS app, including invite creation, email/share flow, acceptance, membership creation, role assignment, validation, and end-to-end testing.

01Audit Existing Team, User, and Auth Models
02Add Invitation Data Model and Migration
03Implement Secure Invite Creation API

+7 more steps to Done

Best forbuilders who have shipped a basic app before

10 steps60-120 minutesIntermediate

Made with Emergent