fix: FK pointing to VIEW instead of TABLE in OpenAPI output

This commit is contained in:
Laurence Isla
2023-01-20 09:37:15 -05:00
committed by GitHub
parent be6c30a0fb
commit 775c006806
3 changed files with 31 additions and 1 deletions
+10
View File
@@ -3096,3 +3096,13 @@ create table test.subscriptions(
subscribed int references test.posters(id),
primary key(subscriber, subscribed)
);
-- view's name is alphabetically before projects
create view test.alpha_projects as
select c.id, p.name as pro_name, c.name as cli_name
from projects p join clients c on p.client_id = c.id;
-- view's name is alphabetically after projects
create view test.zeta_projects as
select c.id, p.name as pro_name, c.name as cli_name
from projects p join clients c on p.client_id = c.id;