-- 022-audio-metadata.sql
-- Store per-track audio metadata extracted by ffprobe during proxy generation.
-- Shape: JSON array of objects, one per audio stream, e.g.:
-- [
--   {"index":1,"codec":"pcm_s24le","channels":2,"channel_layout":"stereo",
--    "sample_rate":48000,"bit_depth":24,"bit_rate":2304000,"language":null},
--   {"index":2,"codec":"aac","channels":2,"channel_layout":"stereo",
--    "sample_rate":48000,"bit_depth":null,"bit_rate":128000,"language":"en"}
-- ]
-- NULL means the asset has not been probed yet or has no audio streams.

ALTER TABLE assets ADD COLUMN IF NOT EXISTS audio_metadata JSONB;
