text: {{ config(materialized = 'table') }}
  
  {% set relations = dbt_utils_justos.get_relations_by_pattern(target.schema ~ '%', 'data_events_%') %}
  
  with unioned as (
      
      {{ dbt_utils_justos.union_relations(relations) }}
      
  )
  
  select
  
      user_id,
      event
  
  from unioned
  