added tests
This commit is contained in:
parent
0a880a138b
commit
e9f16342e7
2 changed files with 6 additions and 2 deletions
|
|
@ -12,11 +12,12 @@ and ensures that the output is properly formatted for further analysis.
|
|||
{% macro timestamp_to_utc(column_name) %}
|
||||
to_timestamp(
|
||||
{{ adapter.quote(column_name) }}::double precision / 1000
|
||||
) at time zone 'UTC' as {{ column_name | replace("At", "") }}_at_utc,
|
||||
) at time zone 'UTC'
|
||||
as {{ column_name | replace("At", "") | replace("Date", "") }}_at_utc,
|
||||
|
||||
cast(
|
||||
to_timestamp(
|
||||
{{ adapter.quote(column_name) }}::double precision / 1000
|
||||
) at time zone 'UTC' as date
|
||||
) as {{ column_name | replace("At", "") }}_date_utc
|
||||
) as {{ column_name | replace("At", "") | replace("Date", "") }}_date_utc
|
||||
{% endmacro %}
|
||||
|
|
|
|||
|
|
@ -121,6 +121,9 @@ models:
|
|||
- name: id_form
|
||||
data_type: character varying
|
||||
description: "Unique id for each form submission."
|
||||
tests:
|
||||
- not_null
|
||||
- unique
|
||||
|
||||
- name: values
|
||||
data_type: jsonb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue