Setup first hasura schema
This commit is contained in:
committed by
Anders Borch
parent
b9d1d80f64
commit
0445c03b51
6
hasura/config.yaml
Normal file
6
hasura/config.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
version: 3
|
||||
endpoint: http://localhost:8080
|
||||
metadata_directory: metadata
|
||||
actions:
|
||||
kind: synchronous
|
||||
handler_webhook_baseurl: http://localhost:3000
|
||||
0
hasura/metadata/actions.graphql
Normal file
0
hasura/metadata/actions.graphql
Normal file
6
hasura/metadata/actions.yaml
Normal file
6
hasura/metadata/actions.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
actions: []
|
||||
custom_types:
|
||||
enums: []
|
||||
input_objects: []
|
||||
objects: []
|
||||
scalars: []
|
||||
1
hasura/metadata/allow_list.yaml
Normal file
1
hasura/metadata/allow_list.yaml
Normal file
@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/api_limits.yaml
Normal file
1
hasura/metadata/api_limits.yaml
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
1
hasura/metadata/backend_configs.yaml
Normal file
1
hasura/metadata/backend_configs.yaml
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
1
hasura/metadata/cron_triggers.yaml
Normal file
1
hasura/metadata/cron_triggers.yaml
Normal file
@ -0,0 +1 @@
|
||||
[]
|
||||
9
hasura/metadata/databases/databases.yaml
Normal file
9
hasura/metadata/databases/databases.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
- name: twenty
|
||||
kind: postgres
|
||||
configuration:
|
||||
connection_info:
|
||||
database_url:
|
||||
from_env: HASURA_GRAPHQL_PG_DATABASE_URL
|
||||
isolation_level: read-committed
|
||||
use_prepared_statements: false
|
||||
tables: "!include twenty/tables/tables.yaml"
|
||||
@ -0,0 +1,3 @@
|
||||
table:
|
||||
name: workspaces
|
||||
schema: public
|
||||
1
hasura/metadata/databases/twenty/tables/tables.yaml
Normal file
1
hasura/metadata/databases/twenty/tables/tables.yaml
Normal file
@ -0,0 +1 @@
|
||||
- "!include public_workspaces.yaml"
|
||||
1
hasura/metadata/graphql_schema_introspection.yaml
Normal file
1
hasura/metadata/graphql_schema_introspection.yaml
Normal file
@ -0,0 +1 @@
|
||||
disabled_for_roles: []
|
||||
1
hasura/metadata/inherited_roles.yaml
Normal file
1
hasura/metadata/inherited_roles.yaml
Normal file
@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/metrics_config.yaml
Normal file
1
hasura/metadata/metrics_config.yaml
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
1
hasura/metadata/network.yaml
Normal file
1
hasura/metadata/network.yaml
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
1
hasura/metadata/opentelemetry.yaml
Normal file
1
hasura/metadata/opentelemetry.yaml
Normal file
@ -0,0 +1 @@
|
||||
{}
|
||||
1
hasura/metadata/query_collections.yaml
Normal file
1
hasura/metadata/query_collections.yaml
Normal file
@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/remote_schemas.yaml
Normal file
1
hasura/metadata/remote_schemas.yaml
Normal file
@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/rest_endpoints.yaml
Normal file
1
hasura/metadata/rest_endpoints.yaml
Normal file
@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/version.yaml
Normal file
1
hasura/metadata/version.yaml
Normal file
@ -0,0 +1 @@
|
||||
version: 3
|
||||
@ -0,0 +1 @@
|
||||
DROP TABLE "public"."workspaces";
|
||||
@ -0,0 +1 @@
|
||||
CREATE TABLE "public"."workspaces" ("id" serial NOT NULL, "name" Text NOT NULL, "display_name" text NOT NULL, PRIMARY KEY ("id") , UNIQUE ("id"), UNIQUE ("name"));
|
||||
Reference in New Issue
Block a user