Neon provides a default postgres user, but for better security, you can create a custom service user:
Go to SQL Editor in your Neon console
Run the following SQL commands to create a dedicated service user:
Copy
Ask AI
-- Create a new user for Fabi.aiCREATE USER fabi_service_user WITH PASSWORD 'secure_password';-- Grant necessary privilegesGRANT CONNECT ON DATABASE neondb TO fabi_service_user;GRANT USAGE ON SCHEMA public TO fabi_service_user;GRANT SELECT ON ALL TABLES IN SCHEMA public TO fabi_service_user;-- Optional: Grant access to future tablesALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO fabi_service_user;