diff --git a/docker-compose.yml b/docker-compose.yml index 32bfe2b..9984101 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,4 +4,57 @@ services: context: . dockerfile: ./Dockerfile ports: - - 3000:3000 \ No newline at end of file + - 3000:3000 + depends_on: + graphql-engine: + condition: service_healthy + + graphql-engine: + image: hasura/graphql-engine:v2.40.3.cli-migrations-v3 + volumes: + - ./hasura-metadata:/hasura-metadata + ports: + - 8090:8080 + restart: always + environment: + ## postgres database to store Hasura metadata + HASURA_GRAPHQL_DATABASE_URL: postgres://citrine:citrine@host.docker.internal:5432/citrine + ## enable the console served by server + HASURA_GRAPHQL_ENABLE_CONSOLE: 'true' # set to "false" to disable console + ## enable debugging mode. It is recommended to disable this in production + HASURA_GRAPHQL_DEV_MODE: 'true' + HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log + HASURA_GRAPHQL_ENABLE_TELEMETRY: 'false' + ## uncomment next line to run console offline (i.e load console assets from server instead of CDN) + # HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets + ## uncomment next line to set an admin secret + # HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey + HASURA_GRAPHQL_METADATA_DEFAULTS: '{"backend_configs":{"dataconnector":{"athena":{"uri":"http://data-connector-agent:8081/api/v1/athena"},"mariadb":{"uri":"http://data-connector-agent:8081/api/v1/mariadb"},"mysql8":{"uri":"http://data-connector-agent:8081/api/v1/mysql"},"oracle":{"uri":"http://data-connector-agent:8081/api/v1/oracle"},"snowflake":{"uri":"http://data-connector-agent:8081/api/v1/snowflake"}}}}' + depends_on: + data-connector-agent: + condition: service_healthy + healthcheck: + test: ['CMD', 'curl', '-f', 'http://localhost:8080/healthz'] + interval: 5s + timeout: 10s + retries: 5 + start_period: 5s + + data-connector-agent: + image: hasura/graphql-data-connector:v2.40.3 + restart: always + ports: + - 8091:8081 + environment: + QUARKUS_LOG_LEVEL: ERROR # FATAL, ERROR, WARN, INFO, DEBUG, TRACE + ## https://quarkus.io/guides/opentelemetry#configuration-reference + QUARKUS_OPENTELEMETRY_ENABLED: 'false' + ## QUARKUS_OPENTELEMETRY_TRACER_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317 + healthcheck: + test: ['CMD', 'curl', '-f', 'http://localhost:8081/api/v1/athena/health'] + interval: 5s + timeout: 10s + retries: 5 + start_period: 5s +volumes: + db_data: diff --git a/hasura-metadata/actions.graphql b/hasura-metadata/actions.graphql new file mode 100644 index 0000000..e69de29 diff --git a/hasura-metadata/actions.yaml b/hasura-metadata/actions.yaml new file mode 100644 index 0000000..1edb4c2 --- /dev/null +++ b/hasura-metadata/actions.yaml @@ -0,0 +1,6 @@ +actions: [] +custom_types: + enums: [] + input_objects: [] + objects: [] + scalars: [] diff --git a/hasura-metadata/allow_list.yaml b/hasura-metadata/allow_list.yaml new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hasura-metadata/allow_list.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura-metadata/api_limits.yaml b/hasura-metadata/api_limits.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/hasura-metadata/api_limits.yaml @@ -0,0 +1 @@ +{} diff --git a/hasura-metadata/backend_configs.yaml b/hasura-metadata/backend_configs.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/hasura-metadata/backend_configs.yaml @@ -0,0 +1 @@ +{} diff --git a/hasura-metadata/cron_triggers.yaml b/hasura-metadata/cron_triggers.yaml new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hasura-metadata/cron_triggers.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura-metadata/databases/citrine/tables/public_AdditionalInfos.yaml b/hasura-metadata/databases/citrine/tables/public_AdditionalInfos.yaml new file mode 100644 index 0000000..d430140 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_AdditionalInfos.yaml @@ -0,0 +1,11 @@ +table: + name: AdditionalInfos + schema: public +array_relationships: + - name: IdTokenAdditionalInfos + using: + foreign_key_constraint_on: + column: additionalInfoId + table: + name: IdTokenAdditionalInfos + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_AsyncJobStatuses.yaml b/hasura-metadata/databases/citrine/tables/public_AsyncJobStatuses.yaml new file mode 100644 index 0000000..d5ea10e --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_AsyncJobStatuses.yaml @@ -0,0 +1,3 @@ +table: + name: AsyncJobStatuses + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_Authorizations.yaml b/hasura-metadata/databases/citrine/tables/public_Authorizations.yaml new file mode 100644 index 0000000..94ce3b6 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Authorizations.yaml @@ -0,0 +1,17 @@ +table: + name: Authorizations + schema: public +object_relationships: + - name: IdToken + using: + foreign_key_constraint_on: idTokenId + - name: IdTokenInfo + using: + foreign_key_constraint_on: idTokenInfoId + - name: OcpiToken + using: + foreign_key_constraint_on: + column: authorization_id + table: + name: OcpiTokens + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_Boots.yaml b/hasura-metadata/databases/citrine/tables/public_Boots.yaml new file mode 100644 index 0000000..c8c73b5 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Boots.yaml @@ -0,0 +1,11 @@ +table: + name: Boots + schema: public +array_relationships: + - name: VariableAttributes + using: + foreign_key_constraint_on: + column: bootConfigId + table: + name: VariableAttributes + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_BusinessDetails.yaml b/hasura-metadata/databases/citrine/tables/public_BusinessDetails.yaml new file mode 100644 index 0000000..0646659 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_BusinessDetails.yaml @@ -0,0 +1,18 @@ +table: + name: BusinessDetails + schema: public +object_relationships: + - name: ClientCredentialsRole + using: + foreign_key_constraint_on: clientCredentialsRoleId + - name: ServerCredentialsRole + using: + foreign_key_constraint_on: serverCredentialsRoleId +array_relationships: + - name: Images + using: + foreign_key_constraint_on: + column: businessDetailsId + table: + name: Images + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_CallMessages.yaml b/hasura-metadata/databases/citrine/tables/public_CallMessages.yaml new file mode 100644 index 0000000..a6c17ff --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_CallMessages.yaml @@ -0,0 +1,3 @@ +table: + name: CallMessages + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_Certificates.yaml b/hasura-metadata/databases/citrine/tables/public_Certificates.yaml new file mode 100644 index 0000000..ccfbb84 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Certificates.yaml @@ -0,0 +1,3 @@ +table: + name: Certificates + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_ChargingNeeds.yaml b/hasura-metadata/databases/citrine/tables/public_ChargingNeeds.yaml new file mode 100644 index 0000000..1759627 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ChargingNeeds.yaml @@ -0,0 +1,10 @@ +table: + name: ChargingNeeds + schema: public +object_relationships: + - name: Evse + using: + foreign_key_constraint_on: evseDatabaseId + - name: Transaction + using: + foreign_key_constraint_on: transactionDatabaseId diff --git a/hasura-metadata/databases/citrine/tables/public_ChargingProfiles.yaml b/hasura-metadata/databases/citrine/tables/public_ChargingProfiles.yaml new file mode 100644 index 0000000..84b9ace --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ChargingProfiles.yaml @@ -0,0 +1,15 @@ +table: + name: ChargingProfiles + schema: public +object_relationships: + - name: Transaction + using: + foreign_key_constraint_on: transactionDatabaseId +array_relationships: + - name: ChargingSchedules + using: + foreign_key_constraint_on: + column: chargingProfileDatabaseId + table: + name: ChargingSchedules + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_ChargingSchedules.yaml b/hasura-metadata/databases/citrine/tables/public_ChargingSchedules.yaml new file mode 100644 index 0000000..94be81d --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ChargingSchedules.yaml @@ -0,0 +1,15 @@ +table: + name: ChargingSchedules + schema: public +object_relationships: + - name: ChargingProfile + using: + foreign_key_constraint_on: chargingProfileDatabaseId +array_relationships: + - name: SalesTariffs + using: + foreign_key_constraint_on: + column: chargingScheduleDatabaseId + table: + name: SalesTariffs + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_ChargingStationSecurityInfos.yaml b/hasura-metadata/databases/citrine/tables/public_ChargingStationSecurityInfos.yaml new file mode 100644 index 0000000..cd40c71 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ChargingStationSecurityInfos.yaml @@ -0,0 +1,3 @@ +table: + name: ChargingStationSecurityInfos + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_ChargingStationSequences.yaml b/hasura-metadata/databases/citrine/tables/public_ChargingStationSequences.yaml new file mode 100644 index 0000000..c73e644 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ChargingStationSequences.yaml @@ -0,0 +1,7 @@ +table: + name: ChargingStationSequences + schema: public +object_relationships: + - name: ChargingStation + using: + foreign_key_constraint_on: stationId diff --git a/hasura-metadata/databases/citrine/tables/public_ChargingStations.yaml b/hasura-metadata/databases/citrine/tables/public_ChargingStations.yaml new file mode 100644 index 0000000..dc9fb68 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ChargingStations.yaml @@ -0,0 +1,43 @@ +table: + name: ChargingStations + schema: public +object_relationships: + - name: Location + using: + foreign_key_constraint_on: locationId +array_relationships: + - name: ChargingStationSequences + using: + foreign_key_constraint_on: + column: stationId + table: + name: ChargingStationSequences + schema: public + - name: LatestStatusNotifications + using: + foreign_key_constraint_on: + column: stationId + table: + name: LatestStatusNotifications + schema: public + - name: StatusNotifications + using: + foreign_key_constraint_on: + column: stationId + table: + name: StatusNotifications + schema: public + - name: Transactions + using: + foreign_key_constraint_on: + column: stationId + table: + name: Transactions + schema: public + - name: VariableAttributes + using: + foreign_key_constraint_on: + column: stationId + table: + name: VariableAttributes + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_ClientCredentialsRoles.yaml b/hasura-metadata/databases/citrine/tables/public_ClientCredentialsRoles.yaml new file mode 100644 index 0000000..a4f1ca1 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ClientCredentialsRoles.yaml @@ -0,0 +1,18 @@ +table: + name: ClientCredentialsRoles + schema: public +object_relationships: + - name: ClientInformation + using: + foreign_key_constraint_on: clientInformationId + - name: CpoTenant + using: + foreign_key_constraint_on: cpoTenantId +array_relationships: + - name: BusinessDetails + using: + foreign_key_constraint_on: + column: clientCredentialsRoleId + table: + name: BusinessDetails + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_ClientInformations.yaml b/hasura-metadata/databases/citrine/tables/public_ClientInformations.yaml new file mode 100644 index 0000000..ceee82d --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ClientInformations.yaml @@ -0,0 +1,29 @@ +table: + name: ClientInformations + schema: public +object_relationships: + - name: CpoTenant + using: + foreign_key_constraint_on: cpoTenantId +array_relationships: + - name: ClientCredentialsRoles + using: + foreign_key_constraint_on: + column: clientInformationId + table: + name: ClientCredentialsRoles + schema: public + - name: ClientVersions + using: + foreign_key_constraint_on: + column: clientInformationId + table: + name: ClientVersions + schema: public + - name: ServerVersions + using: + foreign_key_constraint_on: + column: clientInformationId + table: + name: ServerVersions + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_ClientVersions.yaml b/hasura-metadata/databases/citrine/tables/public_ClientVersions.yaml new file mode 100644 index 0000000..863ecbe --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ClientVersions.yaml @@ -0,0 +1,15 @@ +table: + name: ClientVersions + schema: public +object_relationships: + - name: ClientInformation + using: + foreign_key_constraint_on: clientInformationId +array_relationships: + - name: Endpoints + using: + foreign_key_constraint_on: + column: clientVersionId + table: + name: Endpoints + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_ComponentVariables.yaml b/hasura-metadata/databases/citrine/tables/public_ComponentVariables.yaml new file mode 100644 index 0000000..5728fd0 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ComponentVariables.yaml @@ -0,0 +1,10 @@ +table: + name: ComponentVariables + schema: public +object_relationships: + - name: Component + using: + foreign_key_constraint_on: componentId + - name: Variable + using: + foreign_key_constraint_on: variableId diff --git a/hasura-metadata/databases/citrine/tables/public_Components.yaml b/hasura-metadata/databases/citrine/tables/public_Components.yaml new file mode 100644 index 0000000..8b2bc06 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Components.yaml @@ -0,0 +1,43 @@ +table: + name: Components + schema: public +object_relationships: + - name: Evse + using: + foreign_key_constraint_on: evseDatabaseId +array_relationships: + - name: ComponentVariables + using: + foreign_key_constraint_on: + column: componentId + table: + name: ComponentVariables + schema: public + - name: EventData + using: + foreign_key_constraint_on: + column: componentId + table: + name: EventData + schema: public + - name: MessageInfos + using: + foreign_key_constraint_on: + column: displayComponentId + table: + name: MessageInfos + schema: public + - name: VariableAttributes + using: + foreign_key_constraint_on: + column: componentId + table: + name: VariableAttributes + schema: public + - name: VariableMonitorings + using: + foreign_key_constraint_on: + column: componentId + table: + name: VariableMonitorings + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_CompositeSchedules.yaml b/hasura-metadata/databases/citrine/tables/public_CompositeSchedules.yaml new file mode 100644 index 0000000..d24e01c --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_CompositeSchedules.yaml @@ -0,0 +1,3 @@ +table: + name: CompositeSchedules + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_CpoTenants.yaml b/hasura-metadata/databases/citrine/tables/public_CpoTenants.yaml new file mode 100644 index 0000000..87cdf0b --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_CpoTenants.yaml @@ -0,0 +1,25 @@ +table: + name: CpoTenants + schema: public +array_relationships: + - name: ClientCredentialsRoles + using: + foreign_key_constraint_on: + column: cpoTenantId + table: + name: ClientCredentialsRoles + schema: public + - name: ClientInformations + using: + foreign_key_constraint_on: + column: cpoTenantId + table: + name: ClientInformations + schema: public + - name: ServerCredentialsRoles + using: + foreign_key_constraint_on: + column: cpoTenantId + table: + name: ServerCredentialsRoles + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_Endpoints.yaml b/hasura-metadata/databases/citrine/tables/public_Endpoints.yaml new file mode 100644 index 0000000..495539e --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Endpoints.yaml @@ -0,0 +1,10 @@ +table: + name: Endpoints + schema: public +object_relationships: + - name: ClientVersion + using: + foreign_key_constraint_on: clientVersionId + - name: ServerVersion + using: + foreign_key_constraint_on: serverVersionId diff --git a/hasura-metadata/databases/citrine/tables/public_EventData.yaml b/hasura-metadata/databases/citrine/tables/public_EventData.yaml new file mode 100644 index 0000000..cfdf056 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_EventData.yaml @@ -0,0 +1,10 @@ +table: + name: EventData + schema: public +object_relationships: + - name: Component + using: + foreign_key_constraint_on: componentId + - name: Variable + using: + foreign_key_constraint_on: variableId diff --git a/hasura-metadata/databases/citrine/tables/public_Evses.yaml b/hasura-metadata/databases/citrine/tables/public_Evses.yaml new file mode 100644 index 0000000..83c936a --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Evses.yaml @@ -0,0 +1,46 @@ +table: + name: Evses + schema: public +array_relationships: + - name: ChargingNeeds + using: + foreign_key_constraint_on: + column: evseDatabaseId + table: + name: ChargingNeeds + schema: public + - name: Components + using: + foreign_key_constraint_on: + column: evseDatabaseId + table: + name: Components + schema: public + - name: Reservations + using: + foreign_key_constraint_on: + column: evseId + table: + name: Reservations + schema: public + - name: TransactionEvents + using: + foreign_key_constraint_on: + column: evseId + table: + name: TransactionEvents + schema: public + - name: Transactions + using: + foreign_key_constraint_on: + column: evseDatabaseId + table: + name: Transactions + schema: public + - name: VariableAttributes + using: + foreign_key_constraint_on: + column: evseDatabaseId + table: + name: VariableAttributes + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_IdTokenAdditionalInfos.yaml b/hasura-metadata/databases/citrine/tables/public_IdTokenAdditionalInfos.yaml new file mode 100644 index 0000000..805e4a7 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_IdTokenAdditionalInfos.yaml @@ -0,0 +1,10 @@ +table: + name: IdTokenAdditionalInfos + schema: public +object_relationships: + - name: AdditionalInfo + using: + foreign_key_constraint_on: additionalInfoId + - name: IdToken + using: + foreign_key_constraint_on: idTokenId diff --git a/hasura-metadata/databases/citrine/tables/public_IdTokenInfos.yaml b/hasura-metadata/databases/citrine/tables/public_IdTokenInfos.yaml new file mode 100644 index 0000000..97d6d66 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_IdTokenInfos.yaml @@ -0,0 +1,15 @@ +table: + name: IdTokenInfos + schema: public +object_relationships: + - name: IdToken + using: + foreign_key_constraint_on: groupIdTokenId +array_relationships: + - name: Authorizations + using: + foreign_key_constraint_on: + column: idTokenInfoId + table: + name: Authorizations + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_IdTokens.yaml b/hasura-metadata/databases/citrine/tables/public_IdTokens.yaml new file mode 100644 index 0000000..1163f78 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_IdTokens.yaml @@ -0,0 +1,33 @@ +table: + name: IdTokens + schema: public +object_relationships: + - name: Authorization + using: + foreign_key_constraint_on: + column: idTokenId + table: + name: Authorizations + schema: public +array_relationships: + - name: IdTokenAdditionalInfos + using: + foreign_key_constraint_on: + column: idTokenId + table: + name: IdTokenAdditionalInfos + schema: public + - name: IdTokenInfos + using: + foreign_key_constraint_on: + column: groupIdTokenId + table: + name: IdTokenInfos + schema: public + - name: TransactionEvents + using: + foreign_key_constraint_on: + column: idTokenId + table: + name: TransactionEvents + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_Images.yaml b/hasura-metadata/databases/citrine/tables/public_Images.yaml new file mode 100644 index 0000000..4a268a7 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Images.yaml @@ -0,0 +1,7 @@ +table: + name: Images + schema: public +object_relationships: + - name: BusinessDetail + using: + foreign_key_constraint_on: businessDetailsId diff --git a/hasura-metadata/databases/citrine/tables/public_InstalledCertificates.yaml b/hasura-metadata/databases/citrine/tables/public_InstalledCertificates.yaml new file mode 100644 index 0000000..7ebd83b --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_InstalledCertificates.yaml @@ -0,0 +1,3 @@ +table: + name: InstalledCertificates + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_LatestStatusNotifications.yaml b/hasura-metadata/databases/citrine/tables/public_LatestStatusNotifications.yaml new file mode 100644 index 0000000..b7aa24f --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_LatestStatusNotifications.yaml @@ -0,0 +1,10 @@ +table: + name: LatestStatusNotifications + schema: public +object_relationships: + - name: ChargingStation + using: + foreign_key_constraint_on: stationId + - name: StatusNotification + using: + foreign_key_constraint_on: statusNotificationId diff --git a/hasura-metadata/databases/citrine/tables/public_Locations.yaml b/hasura-metadata/databases/citrine/tables/public_Locations.yaml new file mode 100644 index 0000000..c4d95de --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Locations.yaml @@ -0,0 +1,19 @@ +table: + name: Locations + schema: public +object_relationships: + - name: OcpiLocation + using: + foreign_key_constraint_on: + column: coreLocationId + table: + name: OcpiLocations + schema: public +array_relationships: + - name: ChargingStations + using: + foreign_key_constraint_on: + column: locationId + table: + name: ChargingStations + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_MessageInfos.yaml b/hasura-metadata/databases/citrine/tables/public_MessageInfos.yaml new file mode 100644 index 0000000..9693f37 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_MessageInfos.yaml @@ -0,0 +1,7 @@ +table: + name: MessageInfos + schema: public +object_relationships: + - name: Component + using: + foreign_key_constraint_on: displayComponentId diff --git a/hasura-metadata/databases/citrine/tables/public_MeterValues.yaml b/hasura-metadata/databases/citrine/tables/public_MeterValues.yaml new file mode 100644 index 0000000..d291a2a --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_MeterValues.yaml @@ -0,0 +1,10 @@ +table: + name: MeterValues + schema: public +object_relationships: + - name: Transaction + using: + foreign_key_constraint_on: transactionDatabaseId + - name: TransactionEvent + using: + foreign_key_constraint_on: transactionEventId diff --git a/hasura-metadata/databases/citrine/tables/public_OcpiConnectors.yaml b/hasura-metadata/databases/citrine/tables/public_OcpiConnectors.yaml new file mode 100644 index 0000000..ed764f4 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_OcpiConnectors.yaml @@ -0,0 +1,3 @@ +table: + name: OcpiConnectors + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_OcpiEvses.yaml b/hasura-metadata/databases/citrine/tables/public_OcpiEvses.yaml new file mode 100644 index 0000000..239c113 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_OcpiEvses.yaml @@ -0,0 +1,3 @@ +table: + name: OcpiEvses + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_OcpiLocations.yaml b/hasura-metadata/databases/citrine/tables/public_OcpiLocations.yaml new file mode 100644 index 0000000..1da6314 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_OcpiLocations.yaml @@ -0,0 +1,15 @@ +table: + name: OcpiLocations + schema: public +object_relationships: + - name: Location + using: + foreign_key_constraint_on: coreLocationId +array_relationships: + - name: OcpiReservations + using: + foreign_key_constraint_on: + column: locationId + table: + name: OcpiReservations + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_OcpiReservations.yaml b/hasura-metadata/databases/citrine/tables/public_OcpiReservations.yaml new file mode 100644 index 0000000..4b0fecb --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_OcpiReservations.yaml @@ -0,0 +1,10 @@ +table: + name: OcpiReservations + schema: public +object_relationships: + - name: OcpiLocation + using: + foreign_key_constraint_on: locationId + - name: Reservation + using: + foreign_key_constraint_on: coreReservationId diff --git a/hasura-metadata/databases/citrine/tables/public_OcpiTariffs.yaml b/hasura-metadata/databases/citrine/tables/public_OcpiTariffs.yaml new file mode 100644 index 0000000..35c4462 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_OcpiTariffs.yaml @@ -0,0 +1,3 @@ +table: + name: OcpiTariffs + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_OcpiTokens.yaml b/hasura-metadata/databases/citrine/tables/public_OcpiTokens.yaml new file mode 100644 index 0000000..6e52999 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_OcpiTokens.yaml @@ -0,0 +1,7 @@ +table: + name: OcpiTokens + schema: public +object_relationships: + - name: Authorization + using: + foreign_key_constraint_on: authorization_id diff --git a/hasura-metadata/databases/citrine/tables/public_Reservations.yaml b/hasura-metadata/databases/citrine/tables/public_Reservations.yaml new file mode 100644 index 0000000..c02efe4 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Reservations.yaml @@ -0,0 +1,14 @@ +table: + name: Reservations + schema: public +object_relationships: + - name: Evse + using: + foreign_key_constraint_on: evseId + - name: OcpiReservation + using: + foreign_key_constraint_on: + column: coreReservationId + table: + name: OcpiReservations + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_ResponseUrlCorrelationIds.yaml b/hasura-metadata/databases/citrine/tables/public_ResponseUrlCorrelationIds.yaml new file mode 100644 index 0000000..5fa4c1a --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ResponseUrlCorrelationIds.yaml @@ -0,0 +1,3 @@ +table: + name: ResponseUrlCorrelationIds + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_SalesTariffs.yaml b/hasura-metadata/databases/citrine/tables/public_SalesTariffs.yaml new file mode 100644 index 0000000..310230c --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_SalesTariffs.yaml @@ -0,0 +1,7 @@ +table: + name: SalesTariffs + schema: public +object_relationships: + - name: ChargingSchedule + using: + foreign_key_constraint_on: chargingScheduleDatabaseId diff --git a/hasura-metadata/databases/citrine/tables/public_SecurityEvents.yaml b/hasura-metadata/databases/citrine/tables/public_SecurityEvents.yaml new file mode 100644 index 0000000..571bf87 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_SecurityEvents.yaml @@ -0,0 +1,3 @@ +table: + name: SecurityEvents + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_ServerCredentialsRoles.yaml b/hasura-metadata/databases/citrine/tables/public_ServerCredentialsRoles.yaml new file mode 100644 index 0000000..8ac6657 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ServerCredentialsRoles.yaml @@ -0,0 +1,15 @@ +table: + name: ServerCredentialsRoles + schema: public +object_relationships: + - name: CpoTenant + using: + foreign_key_constraint_on: cpoTenantId +array_relationships: + - name: BusinessDetails + using: + foreign_key_constraint_on: + column: serverCredentialsRoleId + table: + name: BusinessDetails + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_ServerVersions.yaml b/hasura-metadata/databases/citrine/tables/public_ServerVersions.yaml new file mode 100644 index 0000000..f785565 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_ServerVersions.yaml @@ -0,0 +1,15 @@ +table: + name: ServerVersions + schema: public +object_relationships: + - name: ClientInformation + using: + foreign_key_constraint_on: clientInformationId +array_relationships: + - name: Endpoints + using: + foreign_key_constraint_on: + column: serverVersionId + table: + name: Endpoints + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_SessionChargingProfiles.yaml b/hasura-metadata/databases/citrine/tables/public_SessionChargingProfiles.yaml new file mode 100644 index 0000000..6ce89ed --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_SessionChargingProfiles.yaml @@ -0,0 +1,3 @@ +table: + name: SessionChargingProfiles + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_StatusNotifications.yaml b/hasura-metadata/databases/citrine/tables/public_StatusNotifications.yaml new file mode 100644 index 0000000..a86e573 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_StatusNotifications.yaml @@ -0,0 +1,15 @@ +table: + name: StatusNotifications + schema: public +object_relationships: + - name: ChargingStation + using: + foreign_key_constraint_on: stationId +array_relationships: + - name: LatestStatusNotifications + using: + foreign_key_constraint_on: + column: statusNotificationId + table: + name: LatestStatusNotifications + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_Subscriptions.yaml b/hasura-metadata/databases/citrine/tables/public_Subscriptions.yaml new file mode 100644 index 0000000..b0fd45f --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Subscriptions.yaml @@ -0,0 +1,3 @@ +table: + name: Subscriptions + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_Tariffs.yaml b/hasura-metadata/databases/citrine/tables/public_Tariffs.yaml new file mode 100644 index 0000000..12db80b --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Tariffs.yaml @@ -0,0 +1,3 @@ +table: + name: Tariffs + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_TransactionEvents.yaml b/hasura-metadata/databases/citrine/tables/public_TransactionEvents.yaml new file mode 100644 index 0000000..5822fdb --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_TransactionEvents.yaml @@ -0,0 +1,21 @@ +table: + name: TransactionEvents + schema: public +object_relationships: + - name: Evse + using: + foreign_key_constraint_on: evseId + - name: IdToken + using: + foreign_key_constraint_on: idTokenId + - name: Transaction + using: + foreign_key_constraint_on: transactionDatabaseId +array_relationships: + - name: MeterValues + using: + foreign_key_constraint_on: + column: transactionEventId + table: + name: MeterValues + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_Transactions.yaml b/hasura-metadata/databases/citrine/tables/public_Transactions.yaml new file mode 100644 index 0000000..912b158 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Transactions.yaml @@ -0,0 +1,39 @@ +table: + name: Transactions + schema: public +object_relationships: + - name: ChargingStation + using: + foreign_key_constraint_on: stationId + - name: Evse + using: + foreign_key_constraint_on: evseDatabaseId +array_relationships: + - name: ChargingNeeds + using: + foreign_key_constraint_on: + column: transactionDatabaseId + table: + name: ChargingNeeds + schema: public + - name: ChargingProfiles + using: + foreign_key_constraint_on: + column: transactionDatabaseId + table: + name: ChargingProfiles + schema: public + - name: MeterValues + using: + foreign_key_constraint_on: + column: transactionDatabaseId + table: + name: MeterValues + schema: public + - name: TransactionEvents + using: + foreign_key_constraint_on: + column: transactionDatabaseId + table: + name: TransactionEvents + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_VariableAttributes.yaml b/hasura-metadata/databases/citrine/tables/public_VariableAttributes.yaml new file mode 100644 index 0000000..aae47da --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_VariableAttributes.yaml @@ -0,0 +1,27 @@ +table: + name: VariableAttributes + schema: public +object_relationships: + - name: Boot + using: + foreign_key_constraint_on: bootConfigId + - name: ChargingStation + using: + foreign_key_constraint_on: stationId + - name: Component + using: + foreign_key_constraint_on: componentId + - name: Evse + using: + foreign_key_constraint_on: evseDatabaseId + - name: Variable + using: + foreign_key_constraint_on: variableId +array_relationships: + - name: VariableStatuses + using: + foreign_key_constraint_on: + column: variableAttributeId + table: + name: VariableStatuses + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_VariableCharacteristics.yaml b/hasura-metadata/databases/citrine/tables/public_VariableCharacteristics.yaml new file mode 100644 index 0000000..388903e --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_VariableCharacteristics.yaml @@ -0,0 +1,7 @@ +table: + name: VariableCharacteristics + schema: public +object_relationships: + - name: Variable + using: + foreign_key_constraint_on: variableId diff --git a/hasura-metadata/databases/citrine/tables/public_VariableMonitoringStatuses.yaml b/hasura-metadata/databases/citrine/tables/public_VariableMonitoringStatuses.yaml new file mode 100644 index 0000000..05a86e0 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_VariableMonitoringStatuses.yaml @@ -0,0 +1,7 @@ +table: + name: VariableMonitoringStatuses + schema: public +object_relationships: + - name: VariableMonitoring + using: + foreign_key_constraint_on: variableMonitoringId diff --git a/hasura-metadata/databases/citrine/tables/public_VariableMonitorings.yaml b/hasura-metadata/databases/citrine/tables/public_VariableMonitorings.yaml new file mode 100644 index 0000000..81141d7 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_VariableMonitorings.yaml @@ -0,0 +1,18 @@ +table: + name: VariableMonitorings + schema: public +object_relationships: + - name: Component + using: + foreign_key_constraint_on: componentId + - name: Variable + using: + foreign_key_constraint_on: variableId +array_relationships: + - name: VariableMonitoringStatuses + using: + foreign_key_constraint_on: + column: variableMonitoringId + table: + name: VariableMonitoringStatuses + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_VariableStatuses.yaml b/hasura-metadata/databases/citrine/tables/public_VariableStatuses.yaml new file mode 100644 index 0000000..e413fc7 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_VariableStatuses.yaml @@ -0,0 +1,7 @@ +table: + name: VariableStatuses + schema: public +object_relationships: + - name: VariableAttribute + using: + foreign_key_constraint_on: variableAttributeId diff --git a/hasura-metadata/databases/citrine/tables/public_Variables.yaml b/hasura-metadata/databases/citrine/tables/public_Variables.yaml new file mode 100644 index 0000000..1fb01c9 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Variables.yaml @@ -0,0 +1,40 @@ +table: + name: Variables + schema: public +object_relationships: + - name: VariableCharacteristic + using: + foreign_key_constraint_on: + column: variableId + table: + name: VariableCharacteristics + schema: public +array_relationships: + - name: ComponentVariables + using: + foreign_key_constraint_on: + column: variableId + table: + name: ComponentVariables + schema: public + - name: EventData + using: + foreign_key_constraint_on: + column: variableId + table: + name: EventData + schema: public + - name: VariableAttributes + using: + foreign_key_constraint_on: + column: variableId + table: + name: VariableAttributes + schema: public + - name: VariableMonitorings + using: + foreign_key_constraint_on: + column: variableId + table: + name: VariableMonitorings + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_VersionEndpoints.yaml b/hasura-metadata/databases/citrine/tables/public_VersionEndpoints.yaml new file mode 100644 index 0000000..71685f1 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_VersionEndpoints.yaml @@ -0,0 +1,7 @@ +table: + name: VersionEndpoints + schema: public +object_relationships: + - name: Version + using: + foreign_key_constraint_on: versionId diff --git a/hasura-metadata/databases/citrine/tables/public_Versions.yaml b/hasura-metadata/databases/citrine/tables/public_Versions.yaml new file mode 100644 index 0000000..cdf8619 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_Versions.yaml @@ -0,0 +1,11 @@ +table: + name: Versions + schema: public +array_relationships: + - name: VersionEndpoints + using: + foreign_key_constraint_on: + column: versionId + table: + name: VersionEndpoints + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_activity.yaml b/hasura-metadata/databases/citrine/tables/public_directus_activity.yaml new file mode 100644 index 0000000..2aaab37 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_activity.yaml @@ -0,0 +1,11 @@ +table: + name: directus_activity + schema: public +array_relationships: + - name: directus_revisions + using: + foreign_key_constraint_on: + column: activity + table: + name: directus_revisions + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_collections.yaml b/hasura-metadata/databases/citrine/tables/public_directus_collections.yaml new file mode 100644 index 0000000..e6d17a0 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_collections.yaml @@ -0,0 +1,29 @@ +table: + name: directus_collections + schema: public +object_relationships: + - name: directus_collection + using: + foreign_key_constraint_on: group +array_relationships: + - name: directus_collections + using: + foreign_key_constraint_on: + column: group + table: + name: directus_collections + schema: public + - name: directus_shares + using: + foreign_key_constraint_on: + column: collection + table: + name: directus_shares + schema: public + - name: directus_versions + using: + foreign_key_constraint_on: + column: collection + table: + name: directus_versions + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_dashboards.yaml b/hasura-metadata/databases/citrine/tables/public_directus_dashboards.yaml new file mode 100644 index 0000000..3e69fc3 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_dashboards.yaml @@ -0,0 +1,15 @@ +table: + name: directus_dashboards + schema: public +object_relationships: + - name: directus_user + using: + foreign_key_constraint_on: user_created +array_relationships: + - name: directus_panels + using: + foreign_key_constraint_on: + column: dashboard + table: + name: directus_panels + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_extensions.yaml b/hasura-metadata/databases/citrine/tables/public_directus_extensions.yaml new file mode 100644 index 0000000..8639da0 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_extensions.yaml @@ -0,0 +1,3 @@ +table: + name: directus_extensions + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_fields.yaml b/hasura-metadata/databases/citrine/tables/public_directus_fields.yaml new file mode 100644 index 0000000..b8dbbee --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_fields.yaml @@ -0,0 +1,3 @@ +table: + name: directus_fields + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_files.yaml b/hasura-metadata/databases/citrine/tables/public_directus_files.yaml new file mode 100644 index 0000000..c2cd9a4 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_files.yaml @@ -0,0 +1,42 @@ +table: + name: directus_files + schema: public +object_relationships: + - name: directusUserByUploadedBy + using: + foreign_key_constraint_on: uploaded_by + - name: directus_folder + using: + foreign_key_constraint_on: folder + - name: directus_user + using: + foreign_key_constraint_on: modified_by +array_relationships: + - name: directusSettingsByPublicBackground + using: + foreign_key_constraint_on: + column: public_background + table: + name: directus_settings + schema: public + - name: directusSettingsByPublicFavicon + using: + foreign_key_constraint_on: + column: public_favicon + table: + name: directus_settings + schema: public + - name: directusSettingsByPublicForeground + using: + foreign_key_constraint_on: + column: public_foreground + table: + name: directus_settings + schema: public + - name: directus_settings + using: + foreign_key_constraint_on: + column: project_logo + table: + name: directus_settings + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_flows.yaml b/hasura-metadata/databases/citrine/tables/public_directus_flows.yaml new file mode 100644 index 0000000..36360e5 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_flows.yaml @@ -0,0 +1,22 @@ +table: + name: directus_flows + schema: public +object_relationships: + - name: directus_user + using: + foreign_key_constraint_on: user_created +array_relationships: + - name: directus_operations + using: + foreign_key_constraint_on: + column: flow + table: + name: directus_operations + schema: public + - name: directus_webhooks + using: + foreign_key_constraint_on: + column: migrated_flow + table: + name: directus_webhooks + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_folders.yaml b/hasura-metadata/databases/citrine/tables/public_directus_folders.yaml new file mode 100644 index 0000000..8472731 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_folders.yaml @@ -0,0 +1,29 @@ +table: + name: directus_folders + schema: public +object_relationships: + - name: directus_folder + using: + foreign_key_constraint_on: parent +array_relationships: + - name: directus_files + using: + foreign_key_constraint_on: + column: folder + table: + name: directus_files + schema: public + - name: directus_folders + using: + foreign_key_constraint_on: + column: parent + table: + name: directus_folders + schema: public + - name: directus_settings + using: + foreign_key_constraint_on: + column: storage_default_folder + table: + name: directus_settings + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_migrations.yaml b/hasura-metadata/databases/citrine/tables/public_directus_migrations.yaml new file mode 100644 index 0000000..bdd52de --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_migrations.yaml @@ -0,0 +1,3 @@ +table: + name: directus_migrations + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_notifications.yaml b/hasura-metadata/databases/citrine/tables/public_directus_notifications.yaml new file mode 100644 index 0000000..e653f5d --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_notifications.yaml @@ -0,0 +1,10 @@ +table: + name: directus_notifications + schema: public +object_relationships: + - name: directusUserBySender + using: + foreign_key_constraint_on: sender + - name: directus_user + using: + foreign_key_constraint_on: recipient diff --git a/hasura-metadata/databases/citrine/tables/public_directus_operations.yaml b/hasura-metadata/databases/citrine/tables/public_directus_operations.yaml new file mode 100644 index 0000000..3baafbf --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_operations.yaml @@ -0,0 +1,30 @@ +table: + name: directus_operations + schema: public +object_relationships: + - name: directusOperationById + using: + foreign_key_constraint_on: + column: reject + table: + name: directus_operations + schema: public + - name: directusOperationById1 + using: + foreign_key_constraint_on: + column: resolve + table: + name: directus_operations + schema: public + - name: directusOperationByResolve + using: + foreign_key_constraint_on: resolve + - name: directus_flow + using: + foreign_key_constraint_on: flow + - name: directus_operation + using: + foreign_key_constraint_on: reject + - name: directus_user + using: + foreign_key_constraint_on: user_created diff --git a/hasura-metadata/databases/citrine/tables/public_directus_panels.yaml b/hasura-metadata/databases/citrine/tables/public_directus_panels.yaml new file mode 100644 index 0000000..5ace643 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_panels.yaml @@ -0,0 +1,10 @@ +table: + name: directus_panels + schema: public +object_relationships: + - name: directus_dashboard + using: + foreign_key_constraint_on: dashboard + - name: directus_user + using: + foreign_key_constraint_on: user_created diff --git a/hasura-metadata/databases/citrine/tables/public_directus_permissions.yaml b/hasura-metadata/databases/citrine/tables/public_directus_permissions.yaml new file mode 100644 index 0000000..d4e7510 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_permissions.yaml @@ -0,0 +1,7 @@ +table: + name: directus_permissions + schema: public +object_relationships: + - name: directus_role + using: + foreign_key_constraint_on: role diff --git a/hasura-metadata/databases/citrine/tables/public_directus_presets.yaml b/hasura-metadata/databases/citrine/tables/public_directus_presets.yaml new file mode 100644 index 0000000..6acf775 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_presets.yaml @@ -0,0 +1,10 @@ +table: + name: directus_presets + schema: public +object_relationships: + - name: directus_role + using: + foreign_key_constraint_on: role + - name: directus_user + using: + foreign_key_constraint_on: user diff --git a/hasura-metadata/databases/citrine/tables/public_directus_relations.yaml b/hasura-metadata/databases/citrine/tables/public_directus_relations.yaml new file mode 100644 index 0000000..c5f554d --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_relations.yaml @@ -0,0 +1,3 @@ +table: + name: directus_relations + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_revisions.yaml b/hasura-metadata/databases/citrine/tables/public_directus_revisions.yaml new file mode 100644 index 0000000..43cde34 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_revisions.yaml @@ -0,0 +1,21 @@ +table: + name: directus_revisions + schema: public +object_relationships: + - name: directus_activity + using: + foreign_key_constraint_on: activity + - name: directus_revision + using: + foreign_key_constraint_on: parent + - name: directus_version + using: + foreign_key_constraint_on: version +array_relationships: + - name: directus_revisions + using: + foreign_key_constraint_on: + column: parent + table: + name: directus_revisions + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_roles.yaml b/hasura-metadata/databases/citrine/tables/public_directus_roles.yaml new file mode 100644 index 0000000..4771834 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_roles.yaml @@ -0,0 +1,32 @@ +table: + name: directus_roles + schema: public +array_relationships: + - name: directus_permissions + using: + foreign_key_constraint_on: + column: role + table: + name: directus_permissions + schema: public + - name: directus_presets + using: + foreign_key_constraint_on: + column: role + table: + name: directus_presets + schema: public + - name: directus_shares + using: + foreign_key_constraint_on: + column: role + table: + name: directus_shares + schema: public + - name: directus_users + using: + foreign_key_constraint_on: + column: role + table: + name: directus_users + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_sessions.yaml b/hasura-metadata/databases/citrine/tables/public_directus_sessions.yaml new file mode 100644 index 0000000..9a9a605 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_sessions.yaml @@ -0,0 +1,10 @@ +table: + name: directus_sessions + schema: public +object_relationships: + - name: directus_share + using: + foreign_key_constraint_on: share + - name: directus_user + using: + foreign_key_constraint_on: user diff --git a/hasura-metadata/databases/citrine/tables/public_directus_settings.yaml b/hasura-metadata/databases/citrine/tables/public_directus_settings.yaml new file mode 100644 index 0000000..8b11388 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_settings.yaml @@ -0,0 +1,19 @@ +table: + name: directus_settings + schema: public +object_relationships: + - name: directusFileByPublicBackground + using: + foreign_key_constraint_on: public_background + - name: directusFileByPublicFavicon + using: + foreign_key_constraint_on: public_favicon + - name: directusFileByPublicForeground + using: + foreign_key_constraint_on: public_foreground + - name: directus_file + using: + foreign_key_constraint_on: project_logo + - name: directus_folder + using: + foreign_key_constraint_on: storage_default_folder diff --git a/hasura-metadata/databases/citrine/tables/public_directus_shares.yaml b/hasura-metadata/databases/citrine/tables/public_directus_shares.yaml new file mode 100644 index 0000000..f902bfa --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_shares.yaml @@ -0,0 +1,21 @@ +table: + name: directus_shares + schema: public +object_relationships: + - name: directus_collection + using: + foreign_key_constraint_on: collection + - name: directus_role + using: + foreign_key_constraint_on: role + - name: directus_user + using: + foreign_key_constraint_on: user_created +array_relationships: + - name: directus_sessions + using: + foreign_key_constraint_on: + column: share + table: + name: directus_sessions + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_translations.yaml b/hasura-metadata/databases/citrine/tables/public_directus_translations.yaml new file mode 100644 index 0000000..a0fbe27 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_translations.yaml @@ -0,0 +1,3 @@ +table: + name: directus_translations + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_users.yaml b/hasura-metadata/databases/citrine/tables/public_directus_users.yaml new file mode 100644 index 0000000..623a992 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_users.yaml @@ -0,0 +1,99 @@ +table: + name: directus_users + schema: public +object_relationships: + - name: directus_role + using: + foreign_key_constraint_on: role +array_relationships: + - name: directusFilesByUploadedBy + using: + foreign_key_constraint_on: + column: uploaded_by + table: + name: directus_files + schema: public + - name: directusNotificationsBySender + using: + foreign_key_constraint_on: + column: sender + table: + name: directus_notifications + schema: public + - name: directusVersionsByUserUpdated + using: + foreign_key_constraint_on: + column: user_updated + table: + name: directus_versions + schema: public + - name: directus_dashboards + using: + foreign_key_constraint_on: + column: user_created + table: + name: directus_dashboards + schema: public + - name: directus_files + using: + foreign_key_constraint_on: + column: modified_by + table: + name: directus_files + schema: public + - name: directus_flows + using: + foreign_key_constraint_on: + column: user_created + table: + name: directus_flows + schema: public + - name: directus_notifications + using: + foreign_key_constraint_on: + column: recipient + table: + name: directus_notifications + schema: public + - name: directus_operations + using: + foreign_key_constraint_on: + column: user_created + table: + name: directus_operations + schema: public + - name: directus_panels + using: + foreign_key_constraint_on: + column: user_created + table: + name: directus_panels + schema: public + - name: directus_presets + using: + foreign_key_constraint_on: + column: user + table: + name: directus_presets + schema: public + - name: directus_sessions + using: + foreign_key_constraint_on: + column: user + table: + name: directus_sessions + schema: public + - name: directus_shares + using: + foreign_key_constraint_on: + column: user_created + table: + name: directus_shares + schema: public + - name: directus_versions + using: + foreign_key_constraint_on: + column: user_created + table: + name: directus_versions + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_versions.yaml b/hasura-metadata/databases/citrine/tables/public_directus_versions.yaml new file mode 100644 index 0000000..ce6d345 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_versions.yaml @@ -0,0 +1,21 @@ +table: + name: directus_versions + schema: public +object_relationships: + - name: directusUserByUserUpdated + using: + foreign_key_constraint_on: user_updated + - name: directus_collection + using: + foreign_key_constraint_on: collection + - name: directus_user + using: + foreign_key_constraint_on: user_created +array_relationships: + - name: directus_revisions + using: + foreign_key_constraint_on: + column: version + table: + name: directus_revisions + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_directus_webhooks.yaml b/hasura-metadata/databases/citrine/tables/public_directus_webhooks.yaml new file mode 100644 index 0000000..4704aed --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_directus_webhooks.yaml @@ -0,0 +1,7 @@ +table: + name: directus_webhooks + schema: public +object_relationships: + - name: directus_flow + using: + foreign_key_constraint_on: migrated_flow diff --git a/hasura-metadata/databases/citrine/tables/public_geography_columns.yaml b/hasura-metadata/databases/citrine/tables/public_geography_columns.yaml new file mode 100644 index 0000000..41bc0f3 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_geography_columns.yaml @@ -0,0 +1,3 @@ +table: + name: geography_columns + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_geometry_columns.yaml b/hasura-metadata/databases/citrine/tables/public_geometry_columns.yaml new file mode 100644 index 0000000..b7ec872 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_geometry_columns.yaml @@ -0,0 +1,3 @@ +table: + name: geometry_columns + schema: public diff --git a/hasura-metadata/databases/citrine/tables/public_spatial_ref_sys.yaml b/hasura-metadata/databases/citrine/tables/public_spatial_ref_sys.yaml new file mode 100644 index 0000000..cd005a0 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/public_spatial_ref_sys.yaml @@ -0,0 +1,3 @@ +table: + name: spatial_ref_sys + schema: public diff --git a/hasura-metadata/databases/citrine/tables/tables.yaml b/hasura-metadata/databases/citrine/tables/tables.yaml new file mode 100644 index 0000000..b78c789 --- /dev/null +++ b/hasura-metadata/databases/citrine/tables/tables.yaml @@ -0,0 +1,85 @@ +- '!include public_AdditionalInfos.yaml' +- '!include public_AsyncJobStatuses.yaml' +- '!include public_Authorizations.yaml' +- '!include public_Boots.yaml' +- '!include public_BusinessDetails.yaml' +- '!include public_CallMessages.yaml' +- '!include public_Certificates.yaml' +- '!include public_ChargingNeeds.yaml' +- '!include public_ChargingProfiles.yaml' +- '!include public_ChargingSchedules.yaml' +- '!include public_ChargingStationSecurityInfos.yaml' +- '!include public_ChargingStationSequences.yaml' +- '!include public_ChargingStations.yaml' +- '!include public_ClientCredentialsRoles.yaml' +- '!include public_ClientInformations.yaml' +- '!include public_ClientVersions.yaml' +- '!include public_ComponentVariables.yaml' +- '!include public_Components.yaml' +- '!include public_CompositeSchedules.yaml' +- '!include public_CpoTenants.yaml' +- '!include public_Endpoints.yaml' +- '!include public_EventData.yaml' +- '!include public_Evses.yaml' +- '!include public_IdTokenAdditionalInfos.yaml' +- '!include public_IdTokenInfos.yaml' +- '!include public_IdTokens.yaml' +- '!include public_Images.yaml' +- '!include public_InstalledCertificates.yaml' +- '!include public_LatestStatusNotifications.yaml' +- '!include public_Locations.yaml' +- '!include public_MessageInfos.yaml' +- '!include public_MeterValues.yaml' +- '!include public_OcpiConnectors.yaml' +- '!include public_OcpiEvses.yaml' +- '!include public_OcpiLocations.yaml' +- '!include public_OcpiReservations.yaml' +- '!include public_OcpiTariffs.yaml' +- '!include public_OcpiTokens.yaml' +- '!include public_Reservations.yaml' +- '!include public_ResponseUrlCorrelationIds.yaml' +- '!include public_SalesTariffs.yaml' +- '!include public_SecurityEvents.yaml' +- '!include public_ServerCredentialsRoles.yaml' +- '!include public_ServerVersions.yaml' +- '!include public_SessionChargingProfiles.yaml' +- '!include public_StatusNotifications.yaml' +- '!include public_Subscriptions.yaml' +- '!include public_Tariffs.yaml' +- '!include public_TransactionEvents.yaml' +- '!include public_Transactions.yaml' +- '!include public_VariableAttributes.yaml' +- '!include public_VariableCharacteristics.yaml' +- '!include public_VariableMonitoringStatuses.yaml' +- '!include public_VariableMonitorings.yaml' +- '!include public_VariableStatuses.yaml' +- '!include public_Variables.yaml' +- '!include public_VersionEndpoints.yaml' +- '!include public_Versions.yaml' +- '!include public_directus_activity.yaml' +- '!include public_directus_collections.yaml' +- '!include public_directus_dashboards.yaml' +- '!include public_directus_extensions.yaml' +- '!include public_directus_fields.yaml' +- '!include public_directus_files.yaml' +- '!include public_directus_flows.yaml' +- '!include public_directus_folders.yaml' +- '!include public_directus_migrations.yaml' +- '!include public_directus_notifications.yaml' +- '!include public_directus_operations.yaml' +- '!include public_directus_panels.yaml' +- '!include public_directus_permissions.yaml' +- '!include public_directus_presets.yaml' +- '!include public_directus_relations.yaml' +- '!include public_directus_revisions.yaml' +- '!include public_directus_roles.yaml' +- '!include public_directus_sessions.yaml' +- '!include public_directus_settings.yaml' +- '!include public_directus_shares.yaml' +- '!include public_directus_translations.yaml' +- '!include public_directus_users.yaml' +- '!include public_directus_versions.yaml' +- '!include public_directus_webhooks.yaml' +- '!include public_geography_columns.yaml' +- '!include public_geometry_columns.yaml' +- '!include public_spatial_ref_sys.yaml' diff --git a/hasura-metadata/databases/databases.yaml b/hasura-metadata/databases/databases.yaml new file mode 100644 index 0000000..161ebb2 --- /dev/null +++ b/hasura-metadata/databases/databases.yaml @@ -0,0 +1,9 @@ +- name: citrine + kind: postgres + configuration: + connection_info: + database_url: + from_env: HASURA_GRAPHQL_DATABASE_URL + isolation_level: read-committed + use_prepared_statements: false + tables: '!include citrine/tables/tables.yaml' diff --git a/hasura-metadata/graphql_schema_introspection.yaml b/hasura-metadata/graphql_schema_introspection.yaml new file mode 100644 index 0000000..61a4dca --- /dev/null +++ b/hasura-metadata/graphql_schema_introspection.yaml @@ -0,0 +1 @@ +disabled_for_roles: [] diff --git a/hasura-metadata/inherited_roles.yaml b/hasura-metadata/inherited_roles.yaml new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hasura-metadata/inherited_roles.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura-metadata/metrics_config.yaml b/hasura-metadata/metrics_config.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/hasura-metadata/metrics_config.yaml @@ -0,0 +1 @@ +{} diff --git a/hasura-metadata/network.yaml b/hasura-metadata/network.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/hasura-metadata/network.yaml @@ -0,0 +1 @@ +{} diff --git a/hasura-metadata/opentelemetry.yaml b/hasura-metadata/opentelemetry.yaml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/hasura-metadata/opentelemetry.yaml @@ -0,0 +1 @@ +{} diff --git a/hasura-metadata/query_collections.yaml b/hasura-metadata/query_collections.yaml new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hasura-metadata/query_collections.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura-metadata/remote_schemas.yaml b/hasura-metadata/remote_schemas.yaml new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hasura-metadata/remote_schemas.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura-metadata/rest_endpoints.yaml b/hasura-metadata/rest_endpoints.yaml new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/hasura-metadata/rest_endpoints.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura-metadata/version.yaml b/hasura-metadata/version.yaml new file mode 100644 index 0000000..0a70aff --- /dev/null +++ b/hasura-metadata/version.yaml @@ -0,0 +1 @@ +version: 3