{{ header }}
CREATE OR REPLACE VIEW
`{{ last_seen_view }}`
AS
SELECT
{% for ut in usage_types %}
`moz-fx-data-shared-prod`.udf.pos_of_trailing_set_bit(days_{{ ut }}_bits) AS days_since_{{ ut }},
{% endfor %}
*
FROM
`{{ last_seen_table }}`