mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 20:41:49 +03:00
2 lines
6.9 KiB
JSON
2 lines
6.9 KiB
JSON
|
{"type":"replace_metadata", "args":{"version":2, "tables":[{"table":{"schema":"public","name":"Album"},"object_relationships":[{"name":"Artist","using":{"foreign_key_constraint_on":"ArtistId"}}],"array_relationships":[{"name":"Tracks","using":{"foreign_key_constraint_on":{"column":"AlbumId","table":{"schema":"public","name":"Track"}}}}],"select_permissions":[{"role":"customer","permission":{"columns":["AlbumId","Title","ArtistId"],"filter":{}}},{"role":"employee","permission":{"columns":["AlbumId","Title","ArtistId"],"filter":{}}}]},{"table":{"schema":"public","name":"Artist"},"array_relationships":[{"name":"Albums","using":{"foreign_key_constraint_on":{"column":"ArtistId","table":{"schema":"public","name":"Album"}}}}],"select_permissions":[{"role":"customer","permission":{"columns":["ArtistId","Name"],"filter":{}}},{"role":"employee","permission":{"columns":["ArtistId","Name"],"filter":{}}}]},{"table":{"schema":"public","name":"Customer"},"object_relationships":[{"name":"Employee","using":{"foreign_key_constraint_on":"SupportRepId"}}],"array_relationships":[{"name":"Invoices","using":{"foreign_key_constraint_on":{"column":"CustomerId","table":{"schema":"public","name":"Invoice"}}}}],"select_permissions":[{"role":"customer","permission":{"columns":["Address","City","Company","Country","CustomerId","Email","Fax","FirstName","LastName","Phone","PostalCode","State"],"filter":{"CustomerId":{"_eq":"X-Hasura-User-Id"}}}},{"role":"employee","permission":{"columns":["CustomerId","FirstName","LastName","Company","Address","City","State","Country","PostalCode","Phone","Fax","Email","SupportRepId"],"filter":{"SupportRepId":{"_eq":"X-Hasura-User-Id"}}}}],"update_permissions":[{"role":"customer","permission":{"columns":["Address","City","Company","Country","Email","Fax","FirstName","LastName","Phone","PostalCode","State"],"filter":{"CustomerId":{"_eq":"X-Hasura-User-Id"}},"check":{}}}]},{"table":{"schema":"public","name":"Employee"},"object_relationships":[{"name":"Employee","using":{"foreign_key_constraint_on":"ReportsTo"}}],"array_relationships":[{"name":"Customers","using":{"foreign_key_constraint_on":{"column":"SupportRepId","table":{"schema":"public","name":"Customer"}}}},{"name":"Employees","using":{"foreign_key_constraint_on":{"column":"ReportsTo","table":{"schema":"public","name":"Employee"}}}}],"select_permissions":[{"role":"customer","permission":{"columns":["Email","EmployeeId","FirstName","LastName"],"filter":{"Customers":{"CustomerId":{"_eq":"X-Hasura-User-Id"}}}}},{"role":"employee","permission":{"columns":["Address","City","Country","Email","Fax","FirstName","LastName","Phone","PostalCode","State","Title","EmployeeId","ReportsTo","BirthDate","HireDate"],"filter":{"_or":[{"EmployeeId":{"_eq":"X-Hasura-User-Id"}},{"ReportsTo":{"_eq":"X-Hasura-User-Id"}}]}}}],"update_permissions":[{"role":"employee","permission":{"columns":["Address","City","Country","Email","Fax","FirstName","LastName","Phone","PostalCode","State","Title"],"filter":{"EmployeeId":{"_eq":"X-Hasura-User-Id"}},"check":{}}}]},{"table":{"schema":"public","name":"Genre"},"array_relationships":[{"name":"Tracks","using":{"foreign_key_constraint_on":{"column":"GenreId","table":{"schema":"public","name":"Track"}}}}],"select_permissions":[{"role":"customer","permission":{"columns":["GenreId","Name"],"filter":{}}},{"role":"employee","permission":{"columns":["GenreId","Name"],"filter":{}}}]},{"table":{"schema":"public","name":"Invoice"},"object_relationships":[{"name":"Customer","using":{"foreign_key_constraint_on":"CustomerId"}}],"array_relationships":[{"name":"InvoiceLines","using":{"foreign_key_constraint_on":{"column":"InvoiceId","table":{"schema":"public","name":"InvoiceLine"}}}}],"select_permissions":[{"role":"customer","permission":{"columns":["InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total"],"filter":{"CustomerId":{"_eq":"X-Hasura-User-Id"}}}},{"role":"employee","permission":{"columns":["InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingC
|