Learn how I use AI coding agents with Supabase to cut database management from hours to minutes. I'll show you my complete workflow for handling migrations, schema changes, security, and seed data—all using AI to generate the SQL code so you never have to touch raw database queries. See how this approach lets you focus on building features while keeping everything properly versioned in code, creating a seamless development experience that works perfectly with local and production environments.
Commands and rules file: gist.github.com/yifanzz/78f9116ec381bdee9e079f214a…
Timecodes:
00:00:00 - Intro
00:00:55 - Why Supabase?
00:01:55 - Local Setup
00:04:15 - SQL Migrations
00:06:30 - AI Rules Configuration
00:10:05 - AI-Generated Migrations
00:15:05 - UI Schema Changes
00:18:40 - Postgres MCP Integration
00:22:40 - Type Generation
00:23:40 - Automating Timestamps
00:25:30 - Seed Data Management
00:29:45 - Database Reset
00:31:45 - Backwards Compatibility
00:33:35 - Role-Level Security
00:36:50 - Pricing & Free Tier
00:39:50 - Conclusion
コメント