Skip to content

Commit

Permalink
metadata...sort of
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-super committed Aug 19, 2024
1 parent 0f57a5e commit d2c83b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ configuration:
object_relationships:
- name: external_source
using:
foreign_key_constraint_on: source_id
foreign_key_constraint_on:
columns:
- key
- derivation_group_name
table:
name: external_source
schema: merlin
- name: external_event_type
using:
foreign_key_constraint_on: event_type_name
Expand All @@ -29,11 +35,11 @@ select_permissions:
insert_permissions:
- role: aerie_admin
permission:
columns: [key, event_type_name, source_id, start_time, duration, properties]
columns: [key, event_type_name, source_key, derivation_group_name, start_time, duration, properties]
check: {}
- role: user
permission:
columns: [key, event_type_name, source_id, start_time, duration, properties]
columns: [key, event_type_name, source_key, derivation_group_name, start_time, duration, properties]
check: {}
delete_permissions:
- role: aerie_admin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ array_relationships:
- name: external_events
using:
foreign_key_constraint_on:
column: source_id
columns:
- source_key
- derivation_group_name
table:
name: external_event
schema: merlin
Expand Down
4 changes: 2 additions & 2 deletions deployment/hasura/metadata/databases/tables/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
- "!include merlin/plan_derivation_group.yaml"
- "!include merlin/external_source_type.yaml"
- "!include merlin/external_event_type.yaml"
- "!include merlin/derivation_group_comp.yaml"
- "!include merlin/derived_events.yaml"
#- "!include merlin/derivation_group_comp.yaml"
#- "!include merlin/derived_events.yaml"

# Constraints
- "!include merlin/constraints/constraint_metadata.yaml"
Expand Down

0 comments on commit d2c83b6

Please sign in to comment.