Merge pull request #68 from twentyhq/cbo-add-user-to-workspaces-on-signup
Assign user to workspace on signin
This commit is contained in:
@ -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
|
||||
|
||||
@ -0,0 +1,3 @@
|
||||
table:
|
||||
name: workspace_members
|
||||
schema: public
|
||||
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user