Merge pull request #68 from twentyhq/cbo-add-user-to-workspaces-on-signup

Assign user to workspace on signin
This commit is contained in:
Charles Bochet
2023-04-24 17:01:24 +02:00
committed by GitHub
24 changed files with 838 additions and 768 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"