diff --git a/migrations/000000_baseline.sql b/migrations/000000_baseline.sql index 14dca0b..3e3fd9e 100644 --- a/migrations/000000_baseline.sql +++ b/migrations/000000_baseline.sql @@ -38,7 +38,6 @@ create view transactions_with_user_info as select case when t."from" is null then t.interop_name when t."to" is null then t.interop_name - else null end as interop_name, -- From Participant uf.id AS from_user_id, @@ -51,7 +50,7 @@ create view transactions_with_user_info as select ut.name AS to_user_name, at.name AS to_account_name from transactions t -join accounts af ON t."from" = af.id -join users uf ON af."user" = uf.id -join accounts at ON t."to" = at.id -join users ut ON at."user" = ut.id; +left join accounts af ON t."from" = af.id +left join users uf ON af."user" = uf.id +left join accounts at ON t."to" = at.id +left join users ut ON at."user" = ut.id;