-- Mosaic Stack Database Initialization Script
-- This script runs automatically when the PostgreSQL container is first created

-- Enable UUID extension for UUID generation
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";

-- Enable pgvector extension for vector similarity search
CREATE EXTENSION IF NOT EXISTS "vector";

-- Set default timezone to UTC
SET timezone = 'UTC';

-- Log successful initialization
DO $$
BEGIN
  RAISE NOTICE 'Mosaic Stack database initialized successfully';
  RAISE NOTICE 'Extensions enabled: uuid-ossp, vector';
END $$;
