diff --git a/hasura/metadata/tables.yaml b/hasura/metadata/tables.yaml index 9aa3b196e..952644a60 100644 --- a/hasura/metadata/tables.yaml +++ b/hasura/metadata/tables.yaml @@ -4585,6 +4585,73 @@ table: name: parts_dispatch_lines schema: public + insert_permissions: + - role: user + permission: + check: + job: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + columns: + - id + - created_at + - updated_at + - jobid + - number + - employeeid + - dispatched_at + - dispatched_by + select_permissions: + - role: user + permission: + columns: + - number + - dispatched_by + - created_at + - dispatched_at + - updated_at + - employeeid + - id + - jobid + filter: + job: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + update_permissions: + - role: user + permission: + columns: + - number + - dispatched_by + - created_at + - dispatched_at + - updated_at + - employeeid + - id + - jobid + filter: + job: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + check: null - table: name: parts_dispatch_lines schema: public