Skip to content

Commit

Permalink
fix models
Browse files Browse the repository at this point in the history
  • Loading branch information
btkcodedev committed Aug 19, 2024
1 parent bc8e4aa commit 0de9d1e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
id AS account_note_id,
account_id,
user->>created_at AS account_updated_at,
user->>created_at AS created_at,
created_at,
message,
object,
user->>email AS user_email,
Expand All @@ -24,7 +24,7 @@
id AS account_note_id,
account_id,
user:created_at::string AS account_updated_at,
user:created_at::string AS created_at,
created_at,
message,
object,
user:email::string AS user_email,
Expand All @@ -43,7 +43,7 @@
id AS account_note_id,
account_id,
JSON_EXTRACT_SCALAR(user, '$.created_at') AS account_updated_at,
JSON_EXTRACT_SCALAR(user, '$.created_at') AS created_at,
created_at,
message,
object,
JSON_EXTRACT_SCALAR(user, '$.email') AS user_email,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ models:
description: Indicates if this is the most recent record for the account note
- name: currencies
description: Object containing details about currencies
- name: user
description: Object containing details about user
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
SELECT
id AS coupon_redemption_id,
cast(updated_at AS {{ dbt.type_timestamp() }}) AS updated_at,
accoun:id AS account_id,
account:id AS account_id,
coupon:id::text AS coupon_id,
cast(created_at AS {{ dbt.type_timestamp() }}) AS created_at,
currency,
Expand Down

0 comments on commit 0de9d1e

Please sign in to comment.