Database
-
Supabase Notes, Part 2: Tables and Data
Create tables SQL Editor → New query → paste → Run create table authors ( id bigint generated always as identity primary key, name text not null ); create table books ( id bigint generated always as identity primary key, author_id bigint references authors(id), title text not null, is_published boolean default true ); id numbers itself references links a book to its author Add data By hand: Table Editor → table → Insert row From spreadsheet: Insert → Import data…
-
Supabase Notes, Part 1: Getting Started
What is it? Online database (PostgreSQL) Automatic API, so website + apps can read/write data Built-in logins and file storage One project can power a website, iOS app and Android app Cost Free: 2 projects, 500 MB. Pauses after ~1 week of no activity. No backups. Pro: from ~$25/month. No pausing, daily backups. Check current prices: supabase.com/pricing Create a project Sign up at supabase.com Click New project Password: generate, copy, save it somewhere safe Region: closest to your users ✓…