From e8898ab072669b4d4467a79e4f3d861f78be275f Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Thu, 18 Jan 2024 12:24:29 +0100 Subject: [PATCH] superhog user raw --- README.md | 3 ++- models/sources.yml | 4 +++- models/staging/stg_core_superhog_user.sql | 17 +++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 models/staging/stg_core_superhog_user.sql diff --git a/README.md b/README.md index 7874ac8..b9017dc 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,12 @@ Welcome to your new dbt project! ### Using the starter project Try running the following commands: + - dbt run - dbt test +### Resources -### Resources: - Learn more about dbt [in the docs](https://docs.getdbt.com/docs/introduction) - Check out [Discourse](https://discourse.getdbt.com/) for commonly asked questions and answers - Join the [chat](https://community.getdbt.com/) on Slack for live discussions and support diff --git a/models/sources.yml b/models/sources.yml index ab89dbe..2083341 100644 --- a/models/sources.yml +++ b/models/sources.yml @@ -5,4 +5,6 @@ sources: schema: sync_core tables: - name: user - identifier: User \ No newline at end of file + identifier: User + - name: superhog_user + identifier: superhoguser \ No newline at end of file diff --git a/models/staging/stg_core_superhog_user.sql b/models/staging/stg_core_superhog_user.sql new file mode 100644 index 0000000..1f1784a --- /dev/null +++ b/models/staging/stg_core_superhog_user.sql @@ -0,0 +1,17 @@ +with raw_superhog_user as (select * from {{ source("core", "superhog_user") }}) +select + avatar, + airbnbid, + airbnburl, + createddate, + updateddate, + verifieddate, + flagasproblem, + superhoguserid, + numberofproperties, + superhogverifiedsetid, + platformcommsrecipient, + othersharingplatformurl, + userverificationstatusid +from raw_superhog_user +