data-dwh-dbt-project/models
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
..
intermediate Merged PR 2516: Create host_user and user_role in intermediate 2024-08-07 14:28:34 +00:00
reporting Modified filter and table used 2024-08-01 14:32:45 +02:00
staging Merged PR 2516: Create host_user and user_role in intermediate 2024-08-07 14:28:34 +00:00
doc_blocks.md improve stg_stripe__charges 2024-02-23 16:45:19 +01:00