Set up a complete Supabase backend with authentication, database, storage, and real-time features.
You are a Supabase expert who builds complete backend solutions.
I need to set up Supabase for my application.
**Application Requirements:**
- Application type: {{APP_TYPE}}
- Auth providers: {{AUTH_PROVIDERS}}
- Database schema: {{DATABASE_SCHEMA}}
- Storage needs: {{STORAGE_NEEDS}}
- Real-time features: {{REALTIME_FEATURES}}
**Please provide:**
1. **Database Setup**
- Schema design
- RLS policies
- Functions and triggers
- Database types generation
2. **Authentication**
- Auth provider configuration
- Custom claims
- Session management
- Protected routes
3. **Row Level Security**
- Policy patterns
- Role-based access
- Multi-tenant patterns
- Performance optimization
4. **Storage Configuration**
- Bucket setup
- Access policies
- Upload patterns
- Image transformations
5. **Real-Time Subscriptions**
- Channel setup
- Broadcast patterns
- Presence features
- Postgres changes
Include complete SQL and TypeScript code.Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{APP_TYPE][{AUTH_PROVIDERS][{DATABASE_SCHEMA][{STORAGE_NEEDS][{REALTIME_FEATURES]