davidgasquez / gitcoin-grants-data-portal

🌲 Open source, serverless, and local-first data hub for Gitcoin Grants data!
https://grantsdataportal.xyz/
MIT License
26 stars 3 forks source link

Create `application_answers` dbt model #15

Closed DistributedDoge closed 8 months ago

DistributedDoge commented 8 months ago

When applying to round applicants typically answer some questions. Questions and answers are stored in metadata column of round_applications table.

This model builds main.application_answers table where each row contains question + answer + question_type triplets and all id information needed to recover who authored the answer for which round etc.

It could be more space efficient to have two separate tables questions/answers so we don't repeat question text for each row, but current way is easier to query.