IO-710 Export Log Setup. [ci skip]

This commit is contained in:
Patrick Fic
2021-04-21 12:08:32 -07:00
parent 5f9e813940
commit 6d9576b9a4
26 changed files with 780 additions and 8 deletions

View File

@@ -495,6 +495,13 @@ tables:
table:
schema: public
name: documents
- name: exportlogs
using:
foreign_key_constraint_on:
column: billid
table:
schema: public
name: exportlog
- name: parts_orders
using:
foreign_key_constraint_on:
@@ -691,6 +698,13 @@ tables:
table:
schema: public
name: employees
- name: exportlogs
using:
foreign_key_constraint_on:
column: bodyshopid
table:
schema: public
name: exportlog
- name: jobs
using:
foreign_key_constraint_on:
@@ -1733,6 +1747,73 @@ tables:
_eq: X-Hasura-User-Id
- active:
_eq: true
- table:
schema: public
name: exportlog
object_relationships:
- name: bill
using:
foreign_key_constraint_on: billid
- name: bodyshop
using:
foreign_key_constraint_on: bodyshopid
- name: job
using:
foreign_key_constraint_on: jobid
- name: payment
using:
foreign_key_constraint_on: paymentid
- name: user
using:
foreign_key_constraint_on: useremail
insert_permissions:
- role: user
permission:
check:
bodyshop:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
columns:
- id
- created_at
- updated_at
- jobid
- billid
- paymentid
- successful
- message
- bodyshopid
- useremail
backend_only: false
select_permissions:
- role: user
permission:
columns:
- successful
- message
- useremail
- created_at
- updated_at
- billid
- bodyshopid
- id
- jobid
- paymentid
filter:
bodyshop:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
allow_aggregations: true
- table:
schema: public
name: job_conversations
@@ -2167,6 +2248,13 @@ tables:
table:
schema: public
name: documents
- name: exportlogs
using:
foreign_key_constraint_on:
column: jobid
table:
schema: public
name: exportlog
- name: job_conversations
using:
foreign_key_constraint_on:
@@ -3582,6 +3670,14 @@ tables:
- name: job
using:
foreign_key_constraint_on: jobid
array_relationships:
- name: exportlogs
using:
foreign_key_constraint_on:
column: paymentid
table:
schema: public
name: exportlog
insert_permissions:
- role: user
permission:
@@ -3895,6 +3991,13 @@ tables:
table:
schema: public
name: audit_trail
- name: exportlogs
using:
foreign_key_constraint_on:
column: useremail
table:
schema: public
name: exportlog
- name: messages
using:
foreign_key_constraint_on: