-- WP0-D4 / P-016: qms_* add tenant_id (run companion Python for idempotent ALTER)
-- Prefer: python doc/db/mdp/qms_add_tenant_id_d4.py
-- Default tenant backfill: 1300000000001
-- Applied on aidopdev 2026-07-23 for 29 qms_* tables.
