In plain words
A database stores your app's data so it survives refreshes and restarts, organised into tables where each row is one thing and each column one detail.
Where you see it
The Table Editor in Supabase, which looks like a spreadsheet: Chirp's posts table with columns for id, author_id, content, likes and created_at. Every post anyone writes becomes one new row.
What goes wrong
- Money and dates stored as text
Text sorts character by character, so "100" comes before "9" and dates can't be compared properly. Store prices as numeric or whole cents, and times as timestamptz.
- A list squeezed into one column
Tags saved as "vegan, cheap, late-night" in a single text column are hard to search or count. A list of things usually wants its own table.
- Switching off access rules to make an error go away
When Supabase returns empty results, agents sometimes switch off row-level security, Supabase's per-row access rules, to "fix" it. That opens the table to anyone holding your public key.
What to tell your agent
Quick check
Sign in to earn +10 XP for itSorting QuickBite orders by total, lowest first, gives 100, 12, 9.5. What's going on?