Add insert, update, delete permissions without any custom checks. It is assumes that custom checks will be added as a part of the workspace authorization ticket.
61 lines
1.1 KiB
YAML
61 lines
1.1 KiB
YAML
table:
|
|
name: people
|
|
schema: public
|
|
object_relationships:
|
|
- name: company
|
|
using:
|
|
foreign_key_constraint_on: company_id
|
|
- name: workspace
|
|
using:
|
|
foreign_key_constraint_on: workspace_id
|
|
insert_permissions:
|
|
- role: user
|
|
permission:
|
|
check: {}
|
|
columns:
|
|
- company_id
|
|
- id
|
|
- workspace_id
|
|
- city
|
|
- email
|
|
- firstname
|
|
- lastname
|
|
- phone
|
|
- created_at
|
|
- updated_at
|
|
select_permissions:
|
|
- role: user
|
|
permission:
|
|
columns:
|
|
- company_id
|
|
- id
|
|
- workspace_id
|
|
- city
|
|
- email
|
|
- firstname
|
|
- lastname
|
|
- phone
|
|
- created_at
|
|
- updated_at
|
|
filter: {}
|
|
update_permissions:
|
|
- role: user
|
|
permission:
|
|
columns:
|
|
- company_id
|
|
- id
|
|
- workspace_id
|
|
- city
|
|
- email
|
|
- firstname
|
|
- lastname
|
|
- phone
|
|
- created_at
|
|
- updated_at
|
|
filter: {}
|
|
check: {}
|
|
delete_permissions:
|
|
- role: user
|
|
permission:
|
|
filter: {}
|