-- ailf.team_runs_<team> — per-team filtered view factory
--
-- D0037 team ownership is a free-form string column (owner_team). Rather
-- than pre-creating one view per team, use this template as a recipe:
-- copy this file to `team_runs_<team>.sql`, fill in the slug, and run.
--
-- Example for the studio team:
--
--   CREATE OR REPLACE VIEW `data-platform-302218.ailf.team_runs_studio` AS
--   SELECT *
--   FROM   `data-platform-302218.ailf.reports`
--   WHERE  owner_team = 'studio';
--
-- Teams with ad-hoc filtering needs can also query ailf.reports directly
-- with `WHERE owner_team = 'X'` rather than maintaining a view.
--
-- @see docs/decisions/D0037-run-classification-and-ownership-taxonomy.md
