Skip to content

Commit

Permalink
add: contracts model to hasura (#1531)
Browse files Browse the repository at this point in the history
* add: contracts model to hasura

* add: contract query
  • Loading branch information
ccerv1 authored May 25, 2024
1 parent 1e2b197 commit 546b2d7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions apps/hasura/metadata/databases/cloudsql/tables/contracts_v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
table:
name: contracts_v1
schema: public
select_permissions:
- role: anonymous
permission:
columns: "*"
filter: {}
allow_aggregations: false
comment: ""
- role: user
permission:
columns: "*"
filter: {}
allow_aggregations: false
comment: ""
- role: developer
permission:
columns: "*"
filter: {}
allow_aggregations: true
comment: ""
1 change: 1 addition & 0 deletions apps/hasura/metadata/databases/cloudsql/tables/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- "!include artifacts_v1.yaml"
- "!include code_metrics_by_project_v1.yaml"
- "!include collections_v1.yaml"
- "!include contracts_v1.yaml"
- "!include event_indexing_status_by_project_v1.yaml"
- "!include event_types_v1.yaml"
- "!include events_daily_to_artifact.yaml"
Expand Down
2 changes: 1 addition & 1 deletion warehouse/dbt/models/marts/directory/contracts_v1.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{
config(meta = {
'sync_to_db': False
'sync_to_db': True
})
}}

Expand Down

0 comments on commit 546b2d7

Please sign in to comment.