Assign user to workspace on signin

This commit is contained in:
Charles Bochet
2023-04-24 14:50:48 +02:00
parent a5bfeef2d6
commit 6d2c8bbdf9
36 changed files with 547 additions and 34 deletions

View File

@ -120,3 +120,24 @@ array_relationships:
table:
name: user_providers
schema: auth
- name: workspace_member
using:
foreign_key_constraint_on:
column: user_id
table:
name: workspace_members
schema: public
event_triggers:
- name: user-created
definition:
enable_manual: false
insert:
columns: '*'
retry_conf:
interval_sec: 10
num_retries: 0
timeout_sec: 60
webhook: '{{HASURA_EVENT_HANDLER_URL}}'
headers:
- name: secret-header
value: secret

View File

@ -0,0 +1,3 @@
table:
name: workspace_members
schema: public

View File

@ -8,4 +8,5 @@
- "!include auth_users.yaml"
- "!include public_companies.yaml"
- "!include public_people.yaml"
- "!include public_workspace_members.yaml"
- "!include public_workspaces.yaml"