Michele f271d7fe7f feat(01-02): create database migration with plans and profiles
- Create plans table with Free, Creator, Pro tiers
- Create profiles table with tenant_id for multi-tenant isolation
- Enable RLS on both tables (security critical)
- Add auto-profile trigger on auth.users insert
- Add helper functions: get_user_plan_features, get_user_plan_name
- Add performance indexes on tenant_id, plan_id, email

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 03:25:48 +01:00
Description
Leopost - Lab project
386 KiB
Languages
TypeScript 84.9%
CSS 7.3%
PLpgSQL 6.8%
JavaScript 0.7%
Shell 0.3%