preparation for bed overview

This commit is contained in:
Jottyfan
2024-02-22 22:34:22 +01:00
parent 3890720dae
commit a6b09fc88b
137 changed files with 3726 additions and 984 deletions

View File

@ -0,0 +1,12 @@
create view public.v_profile as
select t_profile.pk,
t_profile.forename,
t_profile.surname,
t_profile.username,
t_profile.password,
t_profile.uuid,
array_agg(t_profilerole.role) as roles
from (public.t_profile
left join public.t_profilerole on ((t_profilerole.fk_profile = t_profile.pk)))
where (t_profile.duedate > now())
group by t_profile.pk, t_profile.forename, t_profile.surname, t_profile.username, t_profile.password;