feature #4: create procedure for citizen

This commit is contained in:
2019-07-26 14:29:48 +02:00
parent 0a92316128
commit fc06965cda
8 changed files with 110 additions and 11 deletions

View File

@@ -5,7 +5,7 @@ declare
begin
select
case when count(u) = 1
then to_json(json_populate_record(null::user_lite, to_json(u))) -- TODO refactor this !
then to_jsonb(u) - 'password'
else null end
into resource
from "user" as u