Session 8 of 15
Databases โ Data Stores, Airtable and Supabase
When Google Sheets is no longer enough: Make's built-in data stores, Airtable as a friendly CRM, and Supabase (Postgres) as a real database with SQL โ and building a mini-CRM with an API and a pipeline report.
โฑ๏ธ 3 hours๐ ๏ธ A mini-CRM on Supabase/Postgres: an API for creating and fetching + a daily pipeline report
๐ฏ Session goals
- Understand when to move from Sheets to a database.
- Use Make's data stores and data structures for keeping state.
- Work with Airtable: tables, links, search and upsert.
- Know basic SQL (SELECT, INSERT, UPDATE, GROUP BY).
- Connect Make to Supabase/Postgres and run safe queries.
- Build an API for creating and fetching deals.
- Produce a daily pipeline report from the database.
๐งช Today's scenario โ a live run
๐๏ธ The agenda
- 00:00โ00:15 Review + the midterm exam
- 00:15โ00:40 Why a database? Sheets vs. a DB
- 00:40โ01:05 Make's data stores
- 01:05โ01:20 โ Break
- 01:20โ01:45 Airtable
- 01:45โ02:15 A little SQL + Supabase
- 02:15โ02:50 Building together: a mini-CRM
- 02:50โ03:00 Summary and practice
Sheets vs. a database
- Sheets for an MVP and reports
- A data store for state between runs
- Airtable for a team CRM
- Postgres for systems
Data stores and data structures
- Key + data structure
- Add/replace = upsert
- Dedupe, counters, state
- A storage quota
Airtable โ a CRM people love
- Base / Table / Field types
- Linked records
- Search with a formula
- Upsert and a Personal Access Token
A little SQL
- CREATE TABLE with types and constraints
- INSERT / SELECT / UPDATE
- GROUP BY for reports
- WHERE / ORDER BY / LIMIT
Make + Supabase / Postgres
- The Supabase app / PostgreSQL / HTTP
- Parameters against SQL injection
- service_role only in a connection
- INSERT โฆ RETURNING
Building together: a mini-CRM
- A deals table in Supabase
- A POST + GET API
- A daily GROUP BY report
- Parameters in every query
โ๏ธ Understanding check
๐ To sum up
- Sheets for an MVP, a data store for state, Airtable for a team, Postgres for a system.
- Data store: key + data structure; Add/replace = upsert.
- Basic SQL: CREATE, INSERT, SELECT, GROUP BY.
- Parameters against SQL injection; keys only in a connection.
- We built a mini-CRM with an API and a pipeline report.
๐๏ธ Time to practice!
The session project: A mini-CRM on Supabase/Postgres: an API for creating and fetching + a daily pipeline report