-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(data): table accompagnateurs + enrichissement et nettoyage de ta…
…bles + documentation (#210) Co-authored-by: laurinehu <[email protected]>
- Loading branch information
Showing
10 changed files
with
67 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
models: | ||
- name: int_prescribers | ||
description: | ||
Accompagnateurs avec le label national de leur structure. | ||
`user_id` n'est pas une clé d'unicité étant donné qu'un utilisateur peut avoir de 0 à n labels. | ||
|
||
- name: int_mobilisationevent_user | ||
description: | ||
Événements de mobilisation des utilisateurs. | ||
|
||
- name: int_orientation_user_service | ||
description: | ||
Orientations des utilisateurs vers des services. | ||
|
||
- name: int_user_page_views | ||
description: | ||
Vues de pages par les utilisateurs. | ||
|
||
- name: int_user_search_views | ||
description: | ||
Recherches par les utilisateurs. | ||
|
||
- name: int_service_categories | ||
description: | ||
Catégories de services. | ||
|
||
- name: int_service_funding_labels | ||
description: | ||
Labels de financement des services. | ||
|
||
- name: int_service_structure | ||
description: | ||
Structures de services. | ||
|
||
- name: int_service_structure_labels | ||
description: | ||
Labels des structures de services. | ||
|
||
- name: int_serviceview_user_service | ||
description: | ||
Vues de services par les utilisateurs. | ||
|
||
- name: int_structure_national_labels | ||
description: | ||
Labels nationaux associés aux structures. | ||
`structure_id` n'est pas une clé d'unicité étant donné qu'une structure peut avoir de 0 à n labels. | ||
|
||
- name: int_structure_members | ||
description: | ||
Membres des structures. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SELECT | ||
{{ dbt_utils.star(relation_alias='struct_member', from=ref('int_structure_members')) }}, | ||
struct_labels.national_label_name | ||
FROM {{ ref('int_structure_members') }} AS struct_member | ||
LEFT JOIN {{ ref('int_structure_national_labels') }} AS struct_labels | ||
ON struct_member.structure_id = struct_labels.structure_id | ||
WHERE struct_member.user_main_activity IN ('accompagnateur', 'accompagnateur_offreur') |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ final AS ( | |
INNER JOIN users ON member.user_id = users.id | ||
) | ||
|
||
SELECT * FROM final | ||
SELECT * FROM final |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ final AS ( | |
) | ||
|
||
SELECT * FROM final | ||
WHERE NOT is_obsolete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters