data-dwh-dbt-project/models/staging
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
stripe add value to test 2024-06-19 18:25:49 +02:00
xedotcom make model incremental 2024-06-14 16:01:33 +02:00
xero missing field in stg 2024-07-08 16:29:35 +02:00