thank you mark johnson for your explanation and it help me on the first part of my quastion
let me explain on another way
i think the normal way in moodle that you create curs then assign teacher for that course in that case every course consider as context
and only that user has this capabilities
I need all teachers has the ability to be teacher for all courses by default no deed for assign every teacher to every course
all teacher access all courses