platform/clickhouse/init/schema.sql.
Schema init runs once. The Docker image applies
init/schema.sql exactly
once, on first container start with an empty data volume — editing the SQL
afterwards is ignored on existing environments. To apply a schema change, either
make clickhouse-reset (wipes data) or connect with make clickhouse-cli and run
the migration SQL by hand. In production, treat schema changes as a deliberate
maintenance step against your ClickHouse cluster.Ingest endpoint
Once bothmake clickhouse-up and make platform-api are running, the ingest
endpoint POST /v1/audit/decisions accepts one decision per request:
pytest -m integration) round-trip rows through the live
ClickHouse — opt-in so the default make platform-api-test stays
offline-friendly.
Seed data
refund_customer, create_ticket) with a default role in a 5-minute window 10
days ago.