CREATE OR REPLACE FUNCTION public.fn_admin_list_courses()
 RETURNS TABLE(course_id integer, name character varying, language character varying, active boolean, created_at timestamp with time zone)
 LANGUAGE sql
 STABLE
AS $function$
    SELECT course_id, name, language, active, created_at
    FROM public.courses
    ORDER BY course_id;
$function$
;
