Add delete workgroup query & repo

This commit is contained in:
2020-03-24 23:48:11 +01:00
parent e85c8a3d55
commit 8c25f7633e
3 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
create or replace function delete_workgroup(_id uuid) returns void
language plpgsql as
$$
begin
update workgroup set deleted_at = now()
where id = _id;
end;
$$;