<aside> 📍

Fill this out before you make tables in Supabase. Ask Claude to help you fill it out from your Week 2 requirements. Then save a copy as docs/database-design.md in your repository.

</aside>

What does the app need to save?

List each kind of information your app needs to remember. Write one full sentence for each.

Tables

Make one table for each kind of thing. Copy this section for each table.

Table name:

What it stores:

Column name Type of data (text, number, date, true or false) Required? What it means
id Yes A unique number or code for each row.
user_id Yes The person who owns this row.

Who can see it?

Who can add, change, or delete it?

How the tables connect

Write one sentence for each connection. For example: "One person can have many budgets. Each budget belongs to one person."

Access rules

Supabase calls these Row Level Security, or RLS. Supabase says to turn on RLS for every table in an exposed schema.

Database diagram