diff --git a/projects/cour_des_comptes/models/marts/decidim_awesome/decidim_awesome_private_proposal_fields.sql b/projects/cour_des_comptes/models/marts/decidim_awesome/decidim_awesome_private_proposal_fields.sql new file mode 100644 index 0000000..9b532ba --- /dev/null +++ b/projects/cour_des_comptes/models/marts/decidim_awesome/decidim_awesome_private_proposal_fields.sql @@ -0,0 +1,11 @@ +SELECT + decidim_awesome_private_proposal_fields.id, + decidim_awesome_private_proposal_fields.proposal_id, + decidim_awesome_private_proposal_fields.private_field_description, + decidim_awesome_private_proposal_fields.private_field_content, + decidim_proposals_proposals.decidim_component_id, + components.ps_title +FROM + {{ ref ("int_decidim_awesome_private_proposal_fields")}} AS decidim_awesome_private_proposal_fields +JOIN decidim_proposals_proposals ON decidim_awesome_private_proposal_fields.proposal_id = decidim_proposals_proposals.id +JOIN {{ ref ("components")}} AS components ON decidim_proposals_proposals.decidim_component_id = components.id \ No newline at end of file