-- Bootstrap databases on first postgres container start.
-- Runs once: only when the named volume `pgdata` is empty.
-- Reset with `docker compose down -v` to re-run.
--
-- Three databases created here:
--   gadmin_demo         -> server + worker business data (Prisma)
--   temporal            -> Temporal Server default schema (auto-setup populates tables)
--   temporal_visibility -> Temporal Server visibility schema (PG-only, no ES locally)

CREATE DATABASE gadmin_demo;
CREATE DATABASE temporal;
CREATE DATABASE temporal_visibility;
