data-dwh-dbt-project/seeds
Oriol Roqué Paniagua bc3a364891 Merged PR 5677: Athena/Guesty high risk clients
# Description

* Adds the new snapshot for Guesty Claims, up to 1st July 2025.
* Creates a model named int_athena__high_risk_client_detector that handles the following logic:

1. The User has been using the agreed services for at least (3) months
2. The aggregated number of claims filed by the User exceeds a total of £2300
3. The User has filed at least (5) claims
4. The User has a claim ration of (7%) or higher throughout their entire use of agreed services, including any claim that has received a guarantee payment

It's heavily opinionated due to lack of clear requirements and lack of data quality, both in athena verifications and guesty claims. Please, check the inline comments for more info.

With these model and conditions, only 2 users would be tagged as high risk.

# 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: #31687
2025-07-11 10:28:24 +00:00
..
.gitkeep start project 2024-01-18 11:24:35 +01:00
schema.yml Merged PR 5677: Athena/Guesty high risk clients 2025-07-11 10:28:24 +00:00
stg_seed__accounting_aggregations.csv Addressed comments and all KPI model changes 2025-06-11 12:25:14 +02:00
stg_seed__athena_price_history.csv Merged PR 4102: Athena price update 2025-01-17 16:34:29 +00:00
stg_seed__currencies.csv add file and schema 2024-02-23 13:59:13 +01:00
stg_seed__guest_services_vat_rates_by_country.csv add kosovo 2024-10-01 15:49:25 +02:00
stg_seed__guesty_resolutions_snapshot_20250701.csv Merged PR 5677: Athena/Guesty high risk clients 2025-07-11 10:28:24 +00:00
stg_seed__hubspot_account_owner.csv Hotfix - Fixes Hubspot Owner Seed 2025-05-20 08:25:17 +02:00
stg_seed__main_metrics_targets.csv Merged PR 5634: Adapt Revenue Churn Rate Targets from 3% to 1% 2025-07-07 12:54:39 +00:00
stg_seed_guesty_claims_snapshot_20241010.csv add new seed 2024-10-10 14:31:09 +02:00