-- WING-OPS Database Schema: Extensions & Schemas
-- PostgreSQL 16 + PostGIS

-- ============================================================
-- 스키마 생성
-- ============================================================
CREATE SCHEMA IF NOT EXISTS auth;
CREATE SCHEMA IF NOT EXISTS wing;

-- ============================================================
-- 확장 설치
-- (postgis_topology는 운영 환경 전용, 여기서는 제외)
-- ============================================================
CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
CREATE EXTENSION IF NOT EXISTS postgis WITH SCHEMA public;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public;

-- ============================================================
-- 기본 검색 경로
-- ============================================================
SET search_path = wing, auth, public;
