data-dwh-dbt-project/models/intermediate
Oriol Roqué Paniagua 7177b41e19 Merged PR 2516: Create host_user and user_role in intermediate
# Description

Adds 2 new tables:
- `int_core__user_role`: contains the relationship of a given user has a role.
- `int_core__user_host`: based on the previous table, it selects the users and main information from those users that are considered as hosts according to the role they have.

Note: I needed to change the test in stg. A user, generally, can have no role, one role, or multiple roles. Thus we cannot propagate this information in the unified_user model.

# Checklist

- [X] The edited models and dependants run properly with production data.
- [X] The edited models are sufficiently documented.
- [X] The edited models contain PK tests, and I've ran and passed them.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Related work items: #19513
2024-08-07 14:28:34 +00:00
..
core Merged PR 2516: Create host_user and user_role in intermediate 2024-08-07 14:28:34 +00:00
cross Merged PR 2498: Materialise int_dates_mtd and int_dates_by_deal as table to improve performance 2024-08-06 15:03:32 +00:00
xero Merged PR 2429: Business KPIs - Revenue details 2024-07-29 13:16:19 +00:00