-- ============================================================
-- PostgreSQL init script for Turf SaaS
-- Runs on first container start (docker-entrypoint-initdb.d)
-- ============================================================

-- Create extensions
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS "pg_trgm";

-- Grant privileges to the app user
GRANT ALL PRIVILEGES ON DATABASE turf_saas TO turf;
GRANT ALL ON SCHEMA public TO turf;
