Write-Host "========================================" -ForegroundColor Cyan Write-Host " CONFIGURACAO DO STORAGE - MENSAGENS " -ForegroundColor Cyan Write-Host "========================================" -ForegroundColor Cyan Write-Host "" Write-Host "PASSO 1: Criar Bucket" -ForegroundColor Yellow Write-Host " 1. Acesse: https://supabase.com/dashboard/project/etblfypcxxtvvuqjkrgd/storage/buckets" -ForegroundColor White Write-Host " 2. Clique em 'New bucket'" -ForegroundColor White Write-Host " 3. Nome: message-files" -ForegroundColor Green Write-Host " 4. Tipo: Public bucket" -ForegroundColor Green Write-Host " 5. Clique em 'Create bucket'" -ForegroundColor White Write-Host "" Write-Host "PASSO 2: Configurar Politicas" -ForegroundColor Yellow Write-Host " 1. Acesse: https://supabase.com/dashboard/project/etblfypcxxtvvuqjkrgd/sql/new" -ForegroundColor White Write-Host " 2. Abra o arquivo: supabase\storage-policies.sql" -ForegroundColor Green Write-Host " 3. Copie todo o conteudo" -ForegroundColor White Write-Host " 4. Cole no SQL Editor" -ForegroundColor White Write-Host " 5. Clique em 'Run'" -ForegroundColor White Write-Host "" Write-Host "ARQUIVO SQL: $PSScriptRoot\supabase\storage-policies.sql" -ForegroundColor Magenta Write-Host "" Write-Host "Deseja abrir o arquivo SQL agora? (S/N): " -ForegroundColor Yellow -NoNewline $resposta = Read-Host if ($resposta -eq 'S' -or $resposta -eq 's') { notepad "$PSScriptRoot\supabase\storage-policies.sql" } Write-Host "" Write-Host "Deseja abrir o SQL Editor do Supabase? (S/N): " -ForegroundColor Yellow -NoNewline $resposta2 = Read-Host if ($resposta2 -eq 'S' -or $resposta2 -eq 's') { Start-Process "https://supabase.com/dashboard/project/etblfypcxxtvvuqjkrgd/sql/new" } Write-Host "" Write-Host "================================" -ForegroundColor Green Write-Host " PRONTO PARA CONFIGURAR! " -ForegroundColor Green Write-Host "================================" -ForegroundColor Green